add --game= command line parameter
This commit is contained in:
@@ -13,6 +13,7 @@ _____________________________________________________________________________
|
|||||||
--------
|
--------
|
||||||
* [NotesLoaderKSF] Support reading of #PLAYER and #MUSICINTRO/#INTRO tags in
|
* [NotesLoaderKSF] Support reading of #PLAYER and #MUSICINTRO/#INTRO tags in
|
||||||
KSF files. [based on code by Aldo_MX]
|
KSF files. [based on code by Aldo_MX]
|
||||||
|
* Added --game= command line option.
|
||||||
|
|
||||||
20100626
|
20100626
|
||||||
--------
|
--------
|
||||||
|
|||||||
+11
-1
@@ -1147,7 +1147,17 @@ int main(int argc, char* argv[])
|
|||||||
INPUTFILTER = new InputFilter;
|
INPUTFILTER = new InputFilter;
|
||||||
INPUTMAPPER = new InputMapper;
|
INPUTMAPPER = new InputMapper;
|
||||||
|
|
||||||
StepMania::ChangeCurrentGame( GAMESTATE->GetCurrentGame() );
|
// allow the player to pass in a gametype via command line. -aj
|
||||||
|
RString argGame;
|
||||||
|
const Game* g = GAMESTATE->GetCurrentGame();
|
||||||
|
if( GetCommandlineArgument( "game",&argGame) )
|
||||||
|
{
|
||||||
|
// we need to perform some conversion surgery
|
||||||
|
const Game* newG = GAMEMAN->StringToGame(argGame);
|
||||||
|
if(newG && newG != g)
|
||||||
|
g = newG;
|
||||||
|
}
|
||||||
|
StepMania::ChangeCurrentGame( g );
|
||||||
|
|
||||||
INPUTQUEUE = new InputQueue;
|
INPUTQUEUE = new InputQueue;
|
||||||
SONGINDEX = new SongCacheIndex;
|
SONGINDEX = new SongCacheIndex;
|
||||||
|
|||||||
Reference in New Issue
Block a user