From 4ee0255e76a545f319b6bea1e1f51e3ad9882b34 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 5 Dec 2003 06:03:40 +0000 Subject: [PATCH] Don't call DoesFileExist in ChangeToDirOfExecutable. --- stepmania/src/StepMania.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 26c098a181..87bb007fca 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -88,7 +88,7 @@ static void ChangeToDirOfExecutable(const char *argv0) #ifdef _XBOX DirOfExecutable = "D:\\" ; return ; -#endif +#else DirOfExecutable = argv0; // strip off executable name @@ -110,16 +110,9 @@ static void ChangeToDirOfExecutable(const char *argv0) if( !IsAbsolutePath ) DirOfExecutable = GetCwd() + "/" + DirOfExecutable; -#ifndef _XBOX - /* Make sure the current directory is the root program directory - * We probably shouldn't do this; rather, we should know where things - * are and use paths as needed, so we don't depend on the binary being - * in the same place as "Songs" ... */ - if( !DoesFileExist("Songs") ) - { - chdir( DirOfExecutable ); - FlushDirCache(); - } + /* Make sure the current directory is the root program directory. */ + chdir( DirOfExecutable ); + FlushDirCache(); #endif }