Make the default NoteSkin a theme metric. That means we can't call GetNoteSkinNames() before the theme is loaded so split out the code to get the names of the the skins for a particular game.

This commit is contained in:
Steve Checkoway
2006-05-20 08:58:53 +00:00
parent 8de96799ad
commit df6d8cb6ba
3 changed files with 49 additions and 37 deletions
+1 -3
View File
@@ -2712,9 +2712,7 @@ const Game* GameManager::GetGameFromIndex( int index ) const
bool GameManager::IsGameEnabled( const Game *pGame ) const
{
vector<RString> asNoteSkins;
NOTESKIN->GetNoteSkinNames( pGame, asNoteSkins, false ); /* don't omit default */
return asNoteSkins.size() > 0;
return NOTESKIN->DoNoteSkinsExistForGame( pGame );
}
int GameManager::StepsTypeToNumTracks( StepsType st )