diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 73abdd0e4a..ee13d7b446 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -61,6 +61,8 @@ #endif HWND g_hWndMain = NULL; +int g_argc = 0; +char **g_argv = NULL; #endif @@ -429,6 +431,9 @@ static void RestoreAppPri() int main(int argc, char* argv[]) { + g_argc = argc; + g_argv = argv; + /* Set up arch hooks first. This may set up crash handling. */ HOOKS = MakeArchHooks(); diff --git a/stepmania/src/StepMania.h b/stepmania/src/StepMania.h index 249d1358af..30a6a7b934 100644 --- a/stepmania/src/StepMania.h +++ b/stepmania/src/StepMania.h @@ -19,4 +19,7 @@ void ResetGame(); extern HWND g_hWndMain; #endif +extern int g_argc; +extern char **g_argv; + #endif