Changed NoteSkinManager to use new error reporting and avoid crashing. Fixed DoChangeTheme to switch to the InitialScreen if the screen doesn't exist in the theme being changed to. Fixed error reporting in MeterDisplay.
This commit is contained in:
@@ -145,6 +145,13 @@ namespace
|
||||
|
||||
StepMania::ResetGame();
|
||||
SCREENMAN->ThemeChanged();
|
||||
// Not all themes use the same screen names! Check whether the new
|
||||
// screen is valid in the new theme before setting it. Use the
|
||||
// InitialScreen metric if it's not.
|
||||
if(!SCREENMAN->IsScreenNameValid(g_sNewScreen))
|
||||
{
|
||||
g_sNewScreen= THEME->GetMetric("Common", "InitialScreen");
|
||||
}
|
||||
SCREENMAN->SetNewScreen( g_sNewScreen );
|
||||
|
||||
g_sNewTheme = RString();
|
||||
|
||||
Reference in New Issue
Block a user