fix disk prefs clobbering user's changes made in-game. Oops.
This commit is contained in:
@@ -574,12 +574,8 @@ void PrefsManager::ReadGlobalPrefsFromIni( const IniFile &ini )
|
||||
(*p)->ReadFrom( ini );
|
||||
}
|
||||
|
||||
void PrefsManager::SaveGlobalPrefsToDisk()
|
||||
void PrefsManager::SaveGlobalPrefsToDisk() const
|
||||
{
|
||||
// Re-read before writing so we don't clobber any changes the use made while
|
||||
// the program was running.
|
||||
ReadGlobalPrefsFromDisk();
|
||||
|
||||
IniFile ini;
|
||||
SaveGlobalPrefsToIni( ini );
|
||||
ini.WriteFile( STEPMANIA_INI_PATH );
|
||||
|
||||
Reference in New Issue
Block a user