Use workdir paths on dev builds

modernize-cmake-1
MrSimbax 2019-02-24 17:16:54 +01:00
parent edeae704f9
commit 7268bcca11
1 changed files with 8 additions and 0 deletions

View File

@ -179,12 +179,20 @@ float CSystemUtils::TimeStampDiff(SystemTimeStamp *before, SystemTimeStamp *afte
std::string CSystemUtils::GetDataPath() std::string CSystemUtils::GetDataPath()
{ {
#if DEV_BUILD
return std::string{"./"} + COLOBOT_DEFAULT_DATADIR;
#else
return std::string{PHYSFS_getBaseDir()} + COLOBOT_DEFAULT_DATADIR; return std::string{PHYSFS_getBaseDir()} + COLOBOT_DEFAULT_DATADIR;
#endif
} }
std::string CSystemUtils::GetLangPath() std::string CSystemUtils::GetLangPath()
{ {
#if DEV_BUILD
return std::string{"./"} + COLOBOT_I18N_DIR;
#else
return std::string{PHYSFS_getBaseDir()} + COLOBOT_I18N_DIR; return std::string{PHYSFS_getBaseDir()} + COLOBOT_I18N_DIR;
#endif
} }
std::string CSystemUtils::GetSaveDir() std::string CSystemUtils::GetSaveDir()