Add --game= command line argument. (e.g. --game=kb7, --game=dance)

This commit is contained in:
AJ Kelly
2010-07-19 18:24:46 -05:00
parent c9761f020e
commit c05812fe39
2 changed files with 17 additions and 2 deletions
+9 -2
View File
@@ -14,11 +14,18 @@ sm-ssc v1.0 Release Candidate 2 | 201007xx
--------------------------------------------------------------------------------
(work in progress, it's not out yet [hence the "xx" above].)
20100719
--------
* Add --game= command line argument. (e.g. --game=kb7, --game=dance)
20100718
--------
* Change screenshot naming format from "screen#####" to "YYYY-MM-DD_HHMMSS".
This should solve an issue where screen00000 was getting written multiple
times for unknown reasons.
* Make EnteredPrevSteps/EnteredNextSteps codes only trigger if
CHANGE_STEPS_WITH_GAME_BUTTONS = true. [Daisuke Master]
* [ScreenGameplay] Added UnpauseWithStart metric. [Daisuke Master]
20100717
--------
@@ -155,8 +162,8 @@ sm-ssc v1.0 Release Candidate 1 | 20100627
20100614
--------
* Attempt to fix screenshot numbering bug. Seems to work, if testing is
any indication.
* <del>Attempt to fix screenshot numbering bug. Seems to work, if testing is
any indication.</del> (Did not work.)
20100612
--------
+8
View File
@@ -1147,6 +1147,14 @@ int main(int argc, char* argv[])
INPUTFILTER = new InputFilter;
INPUTMAPPER = new InputMapper;
RString argGame;
if( GetCommandlineArgument( "game",&argGame) )
{
const Game *g = GAMEMAN->StringToGame(argGame);
if( g && g != GAMESTATE->GetCurrentGame() )
GAMESTATE->SetCurGame(g);
}
StepMania::ChangeCurrentGame( GAMESTATE->GetCurrentGame() );
INPUTQUEUE = new InputQueue;