diff --git a/stepmania/src/GameManager.cpp b/stepmania/src/GameManager.cpp index d077b21937..ff5bc793d5 100644 --- a/stepmania/src/GameManager.cpp +++ b/stepmania/src/GameManager.cpp @@ -923,8 +923,8 @@ void GameManager::SwitchNoteSkin( CString sNewNoteSkin ) CString GameManager::GetPathTo( const int col, const SkinElement gbg ) // looks in GAMESTATE for the current Style { - StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); - GameDef* pGameDef = GAMESTATE->GetCurrentGameDef(); + const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); + const GameDef* pGameDef = GAMESTATE->GetCurrentGameDef(); StyleInput SI( PLAYER_1, col ); GameInput GI = pStyleDef->StyleInputToGameInput( SI ); @@ -936,8 +936,8 @@ void GameManager::GetTapTweenColors( const int col, CArray { ASSERT( m_sCurNoteSkin != "" ); // if this == NULL, SwitchGame() was never called - StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); - GameDef* pGameDef = GAMESTATE->GetCurrentGameDef(); + const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); + const GameDef* pGameDef = GAMESTATE->GetCurrentGameDef(); StyleInput SI( PLAYER_1, col ); GameInput GI = pStyleDef->StyleInputToGameInput( SI ); @@ -949,8 +949,8 @@ void GameManager::GetHoldTweenColors( const int col, CArray { ASSERT( m_sCurNoteSkin != "" ); // if this == NULL, SwitchGame() was never called - StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); - GameDef* pGameDef = GAMESTATE->GetCurrentGameDef(); + const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef(); + const GameDef* pGameDef = GAMESTATE->GetCurrentGameDef(); StyleInput SI( PLAYER_1, col ); GameInput GI = pStyleDef->StyleInputToGameInput( SI ); @@ -969,3 +969,103 @@ void GameManager::GetEnabledGames( CArray& aGamesOut ) aGamesOut.Add( game ); } } + +int GameManager::NotesTypeToNumTracks( NotesType nt ) +{ + for( int i=0; i& aGamesOut ); + static int NotesTypeToNumTracks( NotesType nt ); + static NotesType StringToNotesType( CString sNotesType ); + static CString NotesTypeToString( NotesType nt ); + protected: void GetNoteSkinNames( Game game, CStringArray &AddTo );