move GetCommandlineArgument, g_argc and g_argv into RageUtil.cpp,

so tests don't have to duplicate stuff, and because PrefsManager
uses it
This commit is contained in:
Glenn Maynard
2005-11-22 21:18:43 +00:00
parent 100ce95f14
commit 90ad56522c
8 changed files with 59 additions and 56 deletions
+2 -4
View File
@@ -3,6 +3,7 @@
#include "RageFileManager.h"
#include "RageLog.h"
#include "RageUtil.h"
#include "arch/arch.h"
#include "arch/ArchHooks/ArchHooks.h"
void ExitGame() { }
@@ -10,8 +11,6 @@ void ExitGame() { }
CString g_Driver = "dir", g_Root = ".";
CString argv0;
int g_argc = 0;
char **g_argv = NULL;
void HandleException( CString sErr )
{
@@ -20,8 +19,7 @@ void HandleException( CString sErr )
void test_handle_args( int argc, char *argv[] )
{
g_argc = argc;
g_argv = argv;
SetCommandlineArguments( argc, argv );
argv0 = argv[0];
while( 1 )