Don't read this before writing (discard obsolete and empty values)

This commit is contained in:
Glenn Maynard
2003-09-22 20:28:46 +00:00
parent 86889431fb
commit a71be72a18
+1 -1
View File
@@ -461,7 +461,7 @@ void PrefsManager::SaveGamePrefsToDisk()
CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName;
IniFile ini;
ini.SetPath( GAMEPREFS_INI_PATH );
ini.ReadFile(); // it's OK if this fails
// ini.ReadFile(); // it's OK if this fails
ini.SetValue( sGameName, "Announcer", ANNOUNCER->GetCurAnnouncerName() );
ini.SetValue( sGameName, "Theme", THEME->GetCurThemeName() );