Fix paths for Mac OS X.
This commit is contained in:
@@ -94,9 +94,6 @@ RageFileManager::RageFileManager()
|
|||||||
|
|
||||||
/* Paths relative to the CWD: */
|
/* Paths relative to the CWD: */
|
||||||
RageFileManager::Mount( "dir", ".", "" );
|
RageFileManager::Mount( "dir", ".", "" );
|
||||||
#elif defined(DARWIN)
|
|
||||||
/* TopLevelDir/StepMania.app/Contents/MacOS/ is CWD */
|
|
||||||
RageFileManager::Mount( "dir", "../../..", "");
|
|
||||||
#else
|
#else
|
||||||
/* Paths relative to the CWD: */
|
/* Paths relative to the CWD: */
|
||||||
RageFileManager::Mount( "dir", ".", "" );
|
RageFileManager::Mount( "dir", ".", "" );
|
||||||
|
|||||||
@@ -67,13 +67,8 @@ map<CString, CString> LogMaps;
|
|||||||
|
|
||||||
// constants
|
// constants
|
||||||
/* We need to use SYS_BASE_PATH here, because this doesn't go through RageFile. */
|
/* 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 LOG_PATH SYS_BASE_PATH "log.txt"
|
||||||
#define INFO_PATH SYS_BASE_PATH "info.txt"
|
#define INFO_PATH SYS_BASE_PATH "info.txt"
|
||||||
#endif
|
|
||||||
|
|
||||||
static RageFile g_fileLog, g_fileInfo;
|
static RageFile g_fileLog, g_fileInfo;
|
||||||
|
|
||||||
|
|||||||
@@ -127,6 +127,8 @@ static void ChangeToDirOfExecutable(const char *argv0)
|
|||||||
const char *home = getenv("HOME");
|
const char *home = getenv("HOME");
|
||||||
if( home )
|
if( home )
|
||||||
chdir( home );
|
chdir( home );
|
||||||
|
#elif defined(DARWIN)
|
||||||
|
chdir(DirOfExecutable + "/../../..");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user