Remove bSwitchToLastPlayedGame.

Simplify.
This commit is contained in:
Glenn Maynard
2003-10-08 08:01:41 +00:00
parent 8475d5fbd5
commit 17e0fb52b9
3 changed files with 11 additions and 19 deletions
+9 -14
View File
@@ -162,19 +162,23 @@ PrefsManager::PrefsManager()
m_sCoursesToShowRanking = "";
ReadGlobalPrefsFromDisk( true );
ReadGlobalPrefsFromDisk();
}
PrefsManager::~PrefsManager()
{
}
void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame, CString fn )
void PrefsManager::ReadGlobalPrefsFromDisk()
{
IniFile ini;
ini.SetPath( fn );
if( !ini.ReadFile() )
return; // could not read config file, load nothing
ini.SetPath( STEPMANIA_INI_PATH );
ini.ReadFile();
/* Load this on top of the regular INI; if it exists, any settings listed
* in it will override user settings. */
ini.SetPath( STATIC_INI_PATH );
ini.ReadFile();
ini.GetValue( "Options", "Windowed", m_bWindowed );
ini.GetValue( "Options", "Interlaced", m_bInterlaced );
@@ -293,15 +297,6 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame, CStrin
}
}
void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
{
ReadGlobalPrefsFromDisk( bSwitchToLastPlayedGame, STEPMANIA_INI_PATH );
/* Load this on top of the regular INI; if it exists, any settings listed
* in it will override user settings. */
ReadGlobalPrefsFromDisk( bSwitchToLastPlayedGame, STATIC_INI_PATH );
}
void PrefsManager::SaveGlobalPrefsToDisk() const
{
IniFile ini;