Changed many parts of GameCommand to improve error reporting. Fixed GameCommand setpref to not set when loading the command. Minor fix to ScreenOptionsExample.ini to explain that SongInCurrentSongGroup is unusable. CommonMetrics, CourseContentsList, HoldJudgent, OptionRowHandler all have minor changes to fix crashes on malformed theme data.

This commit is contained in:
Kyzentun
2014-07-14 15:41:04 -06:00
committed by Jonathan Payne
parent 5df80b6e0e
commit 4343a99ea9
10 changed files with 147 additions and 89 deletions
+6
View File
@@ -367,6 +367,12 @@ bool ScreenManager::AllowOperatorMenuButton() const
return true;
}
bool ScreenManager::IsScreenNameValid(RString const& name) const
{
RString ClassName = THEME->GetMetric(name,"Class");
return g_pmapRegistrees->find(ClassName) != g_pmapRegistrees->end();
}
bool ScreenManager::IsStackedScreen( const Screen *pScreen ) const
{
// True if the screen is in the screen stack, but not the first.