xbox fixes
This commit is contained in:
@@ -89,16 +89,17 @@ CString DirOfExecutable;
|
|||||||
|
|
||||||
static void ChangeToDirOfExecutable(const char *argv0)
|
static void ChangeToDirOfExecutable(const char *argv0)
|
||||||
{
|
{
|
||||||
|
#ifdef _XBOX
|
||||||
|
DirOfExecutable = "D:\\";
|
||||||
|
InitialWorkingDirectory = "D:\\";
|
||||||
|
return;
|
||||||
|
#else
|
||||||
|
|
||||||
char tmp[1024];
|
char tmp[1024];
|
||||||
getcwd( tmp, 1024 );
|
getcwd( tmp, 1024 );
|
||||||
tmp[1023] = 0;
|
tmp[1023] = 0;
|
||||||
InitialWorkingDirectory = tmp;
|
InitialWorkingDirectory = tmp;
|
||||||
|
|
||||||
#ifdef _XBOX
|
|
||||||
DirOfExecutable = "D:/";
|
|
||||||
return;
|
|
||||||
#else
|
|
||||||
|
|
||||||
DirOfExecutable = argv0;
|
DirOfExecutable = argv0;
|
||||||
DirOfExecutable.Replace( "\\", "/" );
|
DirOfExecutable.Replace( "\\", "/" );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user