diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-09 03:31:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-09 03:31:42 +0300 |
commit | 612873fa462d74a31bdd3977dac7919376038275 (patch) | |
tree | 86c7ce3cb5a0d334bcba5d463846a88e03a8669e /src/dyetool | |
parent | 8470d3c82d84a6bd7767de6763153aa9cdfb991b (diff) | |
download | manaverse-612873fa462d74a31bdd3977dac7919376038275.tar.gz manaverse-612873fa462d74a31bdd3977dac7919376038275.tar.bz2 manaverse-612873fa462d74a31bdd3977dac7919376038275.tar.xz manaverse-612873fa462d74a31bdd3977dac7919376038275.zip |
Simplify add/remove dirs and zips methods in virtfs.
Diffstat (limited to 'src/dyetool')
-rw-r--r-- | src/dyetool/client.cpp | 6 | ||||
-rw-r--r-- | src/dyetool/dyemain.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/dyetool/client.cpp b/src/dyetool/client.cpp index 78678c3c7..d03616888 100644 --- a/src/dyetool/client.cpp +++ b/src/dyetool/client.cpp @@ -269,12 +269,12 @@ void Client::gameInit() // Add the main data directories to our PhysicsFS search path if (!settings.options.dataPath.empty()) { - VirtFs::addDirToSearchPath(settings.options.dataPath, + VirtFs::mountDir(settings.options.dataPath, Append_false); } // Add the local data directory to PhysicsFS search path - VirtFs::addDirToSearchPath(settings.localDataDir, + VirtFs::mountDir(settings.localDataDir, Append_false); TranslationManager::loadCurrentLang(); #ifdef ENABLE_CUSTOMNLS @@ -645,7 +645,7 @@ int Client::gameExec() "zip", Append_false); - VirtFs::addDirToSearchPath( + VirtFs::mountDir( settings.localDataDir + dirSeparator + settings.updatesDir + "/local/", Append_false); diff --git a/src/dyetool/dyemain.cpp b/src/dyetool/dyemain.cpp index e36bf8547..a9af12510 100644 --- a/src/dyetool/dyemain.cpp +++ b/src/dyetool/dyemain.cpp @@ -89,8 +89,8 @@ int main(int argc, char **argv) ResourceManager::init(); VirtFs::setWriteDir("."); - VirtFs::addDirToSearchPath(".", Append_false); - VirtFs::addDirToSearchPath("/", Append_false); + VirtFs::mountDir(".", Append_false); + VirtFs::mountDir("/", Append_false); std::string src = argv[1]; std::string dst; if (argc == 4) |