summaryrefslogtreecommitdiff
path: root/src/fs/files.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/fs/files.cpp
parent8470d3c82d84a6bd7767de6763153aa9cdfb991b (diff)
downloadplus-612873fa462d74a31bdd3977dac7919376038275.tar.gz
plus-612873fa462d74a31bdd3977dac7919376038275.tar.bz2
plus-612873fa462d74a31bdd3977dac7919376038275.tar.xz
plus-612873fa462d74a31bdd3977dac7919376038275.zip
Simplify add/remove dirs and zips methods in virtfs.
Diffstat (limited to 'src/fs/files.cpp')
-rw-r--r--src/fs/files.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/files.cpp b/src/fs/files.cpp
index f6a138475..ab40a7d8f 100644
--- a/src/fs/files.cpp
+++ b/src/fs/files.cpp
@@ -47,7 +47,7 @@ void Files::extractLocale()
const std::string fileName2 = std::string(getenv(
"APPDIR")).append("/locale.zip");
- VirtFs::addZipToSearchPath(fileName2, Append_false);
+ VirtFs::mountZip(fileName2, Append_false);
const std::string localDir = std::string(getenv("APPDIR")).append("/");
VirtList *const rootDirs = VirtFs::enumerateFiles("locale");
@@ -67,7 +67,7 @@ void Files::extractLocale()
}
}
VirtFs::freeList(rootDirs);
- VirtFs::removeZipFromSearchPath(fileName2);
+ VirtFs::unmountZip(fileName2);
remove(fileName2.c_str());
}
#endif // ANDROID
@@ -127,9 +127,9 @@ void Files::extractZip(const std::string &restrict zipName,
const std::string &restrict inDir,
const std::string &restrict outDir)
{
- VirtFs::addZipToSearchPath(zipName, Append_false);
+ VirtFs::mountZip(zipName, Append_false);
copyPhysFsDir(inDir, outDir);
- VirtFs::removeZipFromSearchPath(zipName);
+ VirtFs::unmountZip(zipName);
remove(zipName.c_str());
}