From 8ff43a4bb8b83af6a6b375e3e27e14a47ac1e3da Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 8 Oct 2003 08:06:42 +0000 Subject: [PATCH] Override game prefs with static.ini, too. --- stepmania/src/StepMania.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 1e1ef23629..ecdadce32d 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -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.