diff options
Diffstat (limited to 'src/dyetool')
-rw-r--r-- | src/dyetool/client.cpp | 8 | ||||
-rw-r--r-- | src/dyetool/dyemain.cpp | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/dyetool/client.cpp b/src/dyetool/client.cpp index d32a08493..d2ace1a36 100644 --- a/src/dyetool/client.cpp +++ b/src/dyetool/client.cpp @@ -266,12 +266,13 @@ void Client::gameInit() // Add the main data directories to our PhysicsFS search path if (!settings.options.dataPath.empty()) { - resourceManager->addToSearchPath(settings.options.dataPath, + VirtFs::addDirToSearchPath(settings.options.dataPath, Append_false); } // Add the local data directory to PhysicsFS search path - resourceManager->addToSearchPath(settings.localDataDir, Append_false); + VirtFs::addDirToSearchPath(settings.localDataDir, + Append_false); TranslationManager::loadCurrentLang(); #ifdef ENABLE_CUSTOMNLS TranslationManager::loadGettextLang(); @@ -640,7 +641,8 @@ int Client::gameExec() "zip", Append_false); - resourceManager->addToSearchPath(settings.localDataDir + VirtFs::addDirToSearchPath( + settings.localDataDir + dirSeparator + settings.updatesDir + "/local/", Append_false); } diff --git a/src/dyetool/dyemain.cpp b/src/dyetool/dyemain.cpp index 7e0ed94a4..27b159a70 100644 --- a/src/dyetool/dyemain.cpp +++ b/src/dyetool/dyemain.cpp @@ -88,8 +88,8 @@ int main(int argc, char **argv) ResourceManager::init(); resourceManager->setWriteDir("."); - resourceManager->addToSearchPath(".", Append_false); - resourceManager->addToSearchPath("/", Append_false); + VirtFs::addDirToSearchPath(".", Append_false); + VirtFs::addDirToSearchPath("/", Append_false); std::string src = argv[1]; std::string dst; if (argc == 4) |