Fix paths for Mac OS X.

This commit is contained in:
Steve Checkoway
2003-12-12 08:43:45 +00:00
parent 9e6bdeee9f
commit f27d98fd9c
3 changed files with 2 additions and 8 deletions
-3
View File
@@ -94,9 +94,6 @@ RageFileManager::RageFileManager()
/* Paths relative to the CWD: */
RageFileManager::Mount( "dir", ".", "" );
#elif defined(DARWIN)
/* TopLevelDir/StepMania.app/Contents/MacOS/ is CWD */
RageFileManager::Mount( "dir", "../../..", "");
#else
/* Paths relative to the CWD: */
RageFileManager::Mount( "dir", ".", "" );
-5
View File
@@ -67,13 +67,8 @@ map<CString, CString> LogMaps;
// constants
/* We need to use SYS_BASE_PATH here, because this doesn't go through RageFile. */
#if defined(DARWIN)
#define LOG_PATH "../../../log.txt"
#define INFO_PATH "../../../info.txt"
#else
#define LOG_PATH SYS_BASE_PATH "log.txt"
#define INFO_PATH SYS_BASE_PATH "info.txt"
#endif
static RageFile g_fileLog, g_fileInfo;
+2
View File
@@ -127,6 +127,8 @@ static void ChangeToDirOfExecutable(const char *argv0)
const char *home = getenv("HOME");
if( home )
chdir( home );
#elif defined(DARWIN)
chdir(DirOfExecutable + "/../../..");
#endif
#endif