add switch game code

This commit is contained in:
Chris Danford
2003-09-25 02:16:37 +00:00
parent eaa2fe11df
commit ca7a13deaa
6 changed files with 38 additions and 2 deletions
+7
View File
@@ -1688,6 +1688,13 @@ void GameManager::GetEnabledGames( vector<Game>& aGamesOut )
}
}
bool GameManager::IsGameEnabled( Game game )
{
vector<Game> aGames;
GetEnabledGames( aGames );
return find( aGames.begin(), aGames.end(), game ) != aGames.end();
}
int GameManager::NotesTypeToNumTracks( StepsType nt )
{
if(nt >= NUM_STEPS_TYPES)