Override game prefs with static.ini, too.

This commit is contained in:
Glenn Maynard
2003-10-08 08:06:42 +00:00
parent 17e0fb52b9
commit 8ff43a4bb8
+4
View File
@@ -644,6 +644,7 @@ static void RestoreAppPri()
#define GAMEPREFS_INI_PATH BASE_PATH "Data" SLASH "GamePrefs.ini"
#define STATIC_INI_PATH BASE_PATH "Data" SLASH "Static.ini"
void ChangeCurrentGame( Game g )
{
@@ -669,6 +670,9 @@ void ReadGamePrefsFromDisk( bool bSwitchToLastPlayedGame )
ini.SetPath( GAMEPREFS_INI_PATH );
ini.ReadFile(); // it's OK if this fails
ini.SetPath( STATIC_INI_PATH );
ini.ReadFile(); // it's OK if this fails, too
CString sAnnouncer = sGameName, sTheme = sGameName, sNoteSkin = sGameName;
// if these calls fail, the three strings will keep the initial values set above.