From 2536b8a97e6d837a3929121b796f75e4518b81fc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 12 Jul 2003 19:51:40 +0000 Subject: [PATCH] Expose argc and argv. --- stepmania/src/StepMania.cpp | 5 +++++ stepmania/src/StepMania.h | 3 +++ 2 files changed, 8 insertions(+) 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