From afc0d12058cc9f6eddf2cb547e441dac9bedec49 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 12 Dec 2003 22:39:45 +0000 Subject: [PATCH] cleanup --- stepmania/src/StepMania.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 0ca8e66117..d2ecc325fc 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -120,20 +120,14 @@ static void ChangeToDirOfExecutable(const char *argv0) if( !IsAbsolutePath ) DirOfExecutable = GetCwd() + "/" + DirOfExecutable; - /* Change to the directory that crash dumps should be logged to. */ + /* Set the CWD. Any effects of this is platform-specific; most files are read and + * written through RageFile. See also RageFileManager::RageFileManager. */ #if defined(_WIN32) chdir( DirOfExecutable + "/.." ); #elif defined(LINUX) - /* XXX Don't do this yet since it breaks SM because RageFileManager only - * mounts the cwd for linux at the moment. - */ -#if 0 const char *home = getenv("HOME"); if( home ) chdir( home ); -#else - chdir(DirOfExecutable); -#endif #elif defined(DARWIN) chdir(DirOfExecutable + "/../../.."); #endif