Disable path find debugging

This commit is contained in:
Eduardo Bart
2013-01-23 13:05:18 -02:00
parent c7ff744dcd
commit 3f882d9e6c
2 changed files with 5 additions and 1 deletions

View File

@@ -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))