Use workdir paths on dev builds
parent
edeae704f9
commit
7268bcca11
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue