SetGame method

Added SetGame method to GameManager.

Altered Stepmania::ChangeCurrentGame() to allow a second input,
selecting which theme will be loaded after game is changed.
This commit is contained in:
sigatrev
2014-07-12 09:30:32 -05:00
committed by Jonathan Payne
parent beb8c40ce0
commit ce2b729710
3 changed files with 45 additions and 3 deletions
+4 -2
View File
@@ -808,7 +808,7 @@ static void SwitchToLastPlayedGame()
StepMania::ChangeCurrentGame( pGame );
}
void StepMania::ChangeCurrentGame( const Game* g )
void StepMania::ChangeCurrentGame( const Game* g, RString Theme )
{
ASSERT( g != NULL );
ASSERT( GAMESTATE != NULL );
@@ -825,7 +825,9 @@ void StepMania::ChangeCurrentGame( const Game* g )
sAnnouncer = GAMESTATE->GetCurrentGame()->m_szName;
if( sTheme.empty() )
sTheme = GAMESTATE->GetCurrentGame()->m_szName;
if( Theme.size() )
sTheme = Theme;
// process theme and language command line arguments;
// these change the preferences in order for transparent loading -aj
RString argTheme;