summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-11 19:08:11 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-11 19:19:38 +0300
commit245fb04a1e112cc8d0918a8660474299d5ce223c (patch)
treeeb5ab6266a4ff9551d2e08b9c14b61e353cd127f /src/client.cpp
parentf978c1bed85961e102951340669ca873328bcef3 (diff)
downloadplus-245fb04a1e112cc8d0918a8660474299d5ce223c.tar.gz
plus-245fb04a1e112cc8d0918a8660474299d5ce223c.tar.bz2
plus-245fb04a1e112cc8d0918a8660474299d5ce223c.tar.xz
plus-245fb04a1e112cc8d0918a8660474299d5ce223c.zip
Split virtfs api for add directories and archives.
Also remove useless resourcemanager functions for add/remove virtfs entries.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 1b7f1a1da..38870b50f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -414,12 +414,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();
@@ -1091,7 +1092,7 @@ int Client::gameExec()
"/local/",
"zip");
- resourceManager->removeFromSearchPath(
+ VirtFs::removeDirFromSearchPath(
settings.localDataDir +
dirSeparator +
settings.updatesDir +
@@ -1314,7 +1315,7 @@ int Client::gameExec()
"zip",
Append_false);
- resourceManager->addToSearchPath(
+ VirtFs::addDirToSearchPath(
settings.localDataDir +
dirSeparator +
settings.updatesDir +