From 599a921933ef6390f55674212eaa6fb3b071a9ef Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 15 Apr 2004 19:31:45 +0000 Subject: [PATCH] begin major cleanup of "arguement" handling --- stepmania/src/StepMania.cpp | 124 ++++++++++++++++++------------------ 1 file changed, 63 insertions(+), 61 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index ed8b9545c7..24f5526841 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -853,6 +853,69 @@ static void ApplyLogPreferences() } +//Process args first, put command line options that +//have to run before the SM window loads here +static void ProcessArgsFirst(int argc, char ** argv) +{ + int argCtr = 1,i; //argv[0] is exe + while (argCtri) + ArgParameter = Arguement.substr(i+1,Arguement.GetLength()-i-1); + + //For now using an IF/ELSEIF clause + + if (ArgBase.CompareNoCase("--TESTARGS") == 0) + LOG->Info ("Test of arguements requested. Now in Second argcheck"); + + + argCtr++; + } +} + int main(int argc, char* argv[]) { #ifdef _XBOX @@ -1483,64 +1546,3 @@ static void GameLoop() } } -//Process args first, put command line options that -//have to run before the SM window loads here -void ProcessArgsFirst(int argc, char ** argv) -{ - int argCtr = 1,i; //argv[0] is exe - while (argCtri) - ArgParameter = Arguement.substr(i+1,Arguement.GetLength()-i-1); - - //For now using an IF/ELSEIF clause - - if (ArgBase.CompareNoCase("--TESTARGS") == 0) - LOG->Info ("Test of arguements requested. Now in Second argcheck"); - - - argCtr++; - } -} \ No newline at end of file