Override game prefs with static.ini, too.
This commit is contained in:
@@ -644,6 +644,7 @@ static void RestoreAppPri()
|
|||||||
|
|
||||||
|
|
||||||
#define GAMEPREFS_INI_PATH BASE_PATH "Data" SLASH "GamePrefs.ini"
|
#define GAMEPREFS_INI_PATH BASE_PATH "Data" SLASH "GamePrefs.ini"
|
||||||
|
#define STATIC_INI_PATH BASE_PATH "Data" SLASH "Static.ini"
|
||||||
|
|
||||||
void ChangeCurrentGame( Game g )
|
void ChangeCurrentGame( Game g )
|
||||||
{
|
{
|
||||||
@@ -669,6 +670,9 @@ void ReadGamePrefsFromDisk( bool bSwitchToLastPlayedGame )
|
|||||||
ini.SetPath( GAMEPREFS_INI_PATH );
|
ini.SetPath( GAMEPREFS_INI_PATH );
|
||||||
ini.ReadFile(); // it's OK if this fails
|
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;
|
CString sAnnouncer = sGameName, sTheme = sGameName, sNoteSkin = sGameName;
|
||||||
|
|
||||||
// if these calls fail, the three strings will keep the initial values set above.
|
// if these calls fail, the three strings will keep the initial values set above.
|
||||||
|
|||||||
Reference in New Issue
Block a user