re-read before saving so we don't clobber changes made to StepMania.ini while the program is running

This commit is contained in:
Chris Danford
2005-04-22 08:27:37 +00:00
parent f5a65ff372
commit 7bf33b445d
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -574,8 +574,12 @@ void PrefsManager::ReadGlobalPrefsFromIni( const IniFile &ini )
(*p)->ReadFrom( ini );
}
void PrefsManager::SaveGlobalPrefsToDisk() const
void PrefsManager::SaveGlobalPrefsToDisk()
{
// 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 );