Merge pull request #7913 from chuanweizhang2013/v3fixed

make debug writable path the same as release
This commit is contained in:
minggo 2014-09-01 10:15:52 +08:00
commit bb85ecf0da
1 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ string FileUtilsWin32::getWritablePath() const
::GetModuleFileNameA(nullptr, full_path, CC_MAX_PATH + 1); ::GetModuleFileNameA(nullptr, full_path, CC_MAX_PATH + 1);
// Debug app uses executable directory; Non-debug app uses local app data directory // Debug app uses executable directory; Non-debug app uses local app data directory
#ifndef _DEBUG //#ifndef _DEBUG
// Get filename of executable only, e.g. MyGame.exe // Get filename of executable only, e.g. MyGame.exe
char *base_name = strrchr(full_path, '\\'); char *base_name = strrchr(full_path, '\\');
@ -306,7 +306,7 @@ string FileUtilsWin32::getWritablePath() const
} }
} }
} }
#endif // not defined _DEBUG //#endif // not defined _DEBUG
// If fetching of local app data directory fails, use the executable one // If fetching of local app data directory fails, use the executable one
string ret((char*)full_path); string ret((char*)full_path);