Expose argc and argv.

This commit is contained in:
Glenn Maynard
2003-07-12 19:51:40 +00:00
parent ddf1bd04dc
commit 2536b8a97e
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -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();
+3
View File
@@ -19,4 +19,7 @@ void ResetGame();
extern HWND g_hWndMain;
#endif
extern int g_argc;
extern char **g_argv;
#endif