|
|
|
@ -47,7 +47,8 @@ bool ResourceManager::discoverWorkDir(const std::string& existentFile)
|
|
|
|
|
// search for modules directory
|
|
|
|
|
std::string possiblePaths[] = { g_resources.getCurrentDir(),
|
|
|
|
|
g_resources.getBaseDir(),
|
|
|
|
|
g_resources.getBaseDir() + "../" };
|
|
|
|
|
g_resources.getBaseDir() + "../",
|
|
|
|
|
g_resources.getBaseDir() + "../share/" + g_app.getCompactName() };
|
|
|
|
|
bool found = false;
|
|
|
|
|
for(const std::string& dir : possiblePaths) {
|
|
|
|
|
if(!PHYSFS_addToSearchPath(dir.c_str(), 0))
|
|
|
|
|