add StringToGameType
This commit is contained in:
@@ -1684,6 +1684,15 @@ NotesType GameManager::StringToNotesType( CString sNotesType )
|
||||
return NOTES_TYPE_DANCE_SINGLE;
|
||||
}
|
||||
|
||||
Game GameManager::StringToGameType( CString sGameType )
|
||||
{
|
||||
for( int i=0; i<NUM_GAMES; i++ )
|
||||
if( !sGameType.CompareNoCase(g_GameDefs[i].m_szName) )
|
||||
return Game(i);
|
||||
|
||||
return GAME_INVALID;
|
||||
}
|
||||
|
||||
CString GameManager::NotesTypeToString( NotesType nt )
|
||||
{
|
||||
if(nt >= NUM_NOTES_TYPES)
|
||||
|
||||
@@ -57,6 +57,7 @@ public:
|
||||
static int NotesTypeToNumTracks( NotesType nt );
|
||||
static NotesType StringToNotesType( CString sNotesType );
|
||||
static CString NotesTypeToString( NotesType nt );
|
||||
static Game StringToGameType( CString sGameType );
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user