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/fs/files.cpp | |
parent | 8470d3c82d84a6bd7767de6763153aa9cdfb991b (diff) | |
download | manaplus-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/fs/files.cpp')
-rw-r--r-- | src/fs/files.cpp | 8 |
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()); } |