Stop C4Config from forcing work dir in debug builds

Nicolas Hake 2009-07-08 18:45:03 +02:00
parent 4649547c97
commit 7a38556516
1 changed files with 6 additions and 2 deletions

View File

@ -652,13 +652,17 @@ void C4ConfigGeneral::DeterminePaths(BOOL forceWorkingDirectory)
SCopy("/tmp/", TempPath);
#endif
// Force working directory to exe path if desired
#ifndef _DEBUG
if (forceWorkingDirectory)
SetWorkingDirectory(ExePath);
#endif
// Find system-wide data path
#if defined(_WIN32) || defined(__APPLE__)
// Use exe path
SCopy(ExePath,SystemDataPath);
// Use workdir; in release builds, this is the exe dir
SCopy(GetWorkingDirectory(),SystemDataPath);
AppendBackslash(SystemDataPath);
#elif defined(__linux__)
// FIXME: Where to put this?
SCopy(ExePath,SystemDataPath);