This commit is contained in:
Glenn Maynard
2003-09-22 21:44:28 +00:00
parent bc3d722afe
commit 787cebdda7
+2 -2
View File
@@ -431,7 +431,7 @@ void PrefsManager::ReadGamePrefsFromDisk()
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
CString sAnnouncer = sGameName, sTheme = sGameName, sNoteSkin = sGameName;
@@ -455,7 +455,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() );