From e9c05dad1575f7a06c62c93ede7bb39c59f2fe8a Mon Sep 17 00:00:00 2001 From: Manu Evans Date: Sun, 1 Feb 2004 07:10:03 +0000 Subject: [PATCH] xbox fixes --- stepmania/src/StepMania.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 5451df2f8b..d675b974f6 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -89,16 +89,17 @@ CString DirOfExecutable; static void ChangeToDirOfExecutable(const char *argv0) { +#ifdef _XBOX + DirOfExecutable = "D:\\"; + InitialWorkingDirectory = "D:\\"; + return; +#else + char tmp[1024]; getcwd( tmp, 1024 ); tmp[1023] = 0; InitialWorkingDirectory = tmp; -#ifdef _XBOX - DirOfExecutable = "D:/"; - return; -#else - DirOfExecutable = argv0; DirOfExecutable.Replace( "\\", "/" );