summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-09 03:31:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-09 03:31:42 +0300
commit612873fa462d74a31bdd3977dac7919376038275 (patch)
tree86c7ce3cb5a0d334bcba5d463846a88e03a8669e /src/client.cpp
parent8470d3c82d84a6bd7767de6763153aa9cdfb991b (diff)
downloadmanaplus-612873fa462d74a31bdd3977dac7919376038275.tar.gz
manaplus-612873fa462d74a31bdd3977dac7919376038275.tar.bz2
manaplus-612873fa462d74a31bdd3977dac7919376038275.tar.xz
manaplus-612873fa462d74a31bdd3977dac7919376038275.zip
Simplify add/remove dirs and zips methods in virtfs.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 961287868..7a7f420ac 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -418,12 +418,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
@@ -1096,7 +1096,7 @@ int Client::gameExec()
"/local/",
"zip");
- VirtFs::removeDirFromSearchPathSilent(
+ VirtFs::unmountDirSilent(
settings.localDataDir +
dirSeparator +
settings.updatesDir +
@@ -1319,7 +1319,7 @@ int Client::gameExec()
"zip",
Append_false);
- VirtFs::addDirToSearchPath(
+ VirtFs::mountDir(
settings.localDataDir +
dirSeparator +
settings.updatesDir +