diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-28 17:20:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-28 17:20:19 +0300 |
commit | 9c289c7cc0e5fdf89eed1e28200166714789c92f (patch) | |
tree | d669909a1b3ce26d82f6b71c83ebb9938a832f7f /src/fs/files.cpp | |
parent | 6ff6d6928328ff2110f028a374ade49415d5a0ba (diff) | |
download | plus-9c289c7cc0e5fdf89eed1e28200166714789c92f.tar.gz plus-9c289c7cc0e5fdf89eed1e28200166714789c92f.tar.bz2 plus-9c289c7cc0e5fdf89eed1e28200166714789c92f.tar.xz plus-9c289c7cc0e5fdf89eed1e28200166714789c92f.zip |
Rename some left functions from physfs to virtfs.
Diffstat (limited to 'src/fs/files.cpp')
-rw-r--r-- | src/fs/files.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fs/files.cpp b/src/fs/files.cpp index b525b2c59..dca24aec1 100644 --- a/src/fs/files.cpp +++ b/src/fs/files.cpp @@ -60,7 +60,7 @@ void Files::extractLocale() const std::string localFile = localDir + moFile; const std::string localDir2 = localDir + dir + "/LC_MESSAGES"; mkdir_r(localDir2.c_str()); - copyPhysFsFile(moFile, localFile); + copyVirtFsFile(moFile, localFile); } } } @@ -86,7 +86,7 @@ void Files::setCopyCallBack(Files::CopyFileCallbackPtr callback) mCallbackPtr = callback; } -void Files::copyPhysFsFile(const std::string &restrict inFile, +void Files::copyVirtFsFile(const std::string &restrict inFile, const std::string &restrict outFile) { int size = 0; @@ -104,7 +104,7 @@ void Files::copyPhysFsFile(const std::string &restrict inFile, #endif // ANDROID } -void Files::copyPhysFsDir(const std::string &restrict inDir, +void Files::copyVirtFsDir(const std::string &restrict inDir, const std::string &restrict outDir) { mkdir_r(outDir.c_str()); @@ -114,9 +114,9 @@ void Files::copyPhysFsDir(const std::string &restrict inDir, const std::string file = std::string(inDir).append("/").append(*i); const std::string outDir2 = std::string(outDir).append("/").append(*i); if (VirtFs::isDirectory(file)) - copyPhysFsDir(file, outDir2); + copyVirtFsDir(file, outDir2); else - copyPhysFsFile(file, outDir2); + copyVirtFsFile(file, outDir2); } VirtFs::freeList(files); } @@ -126,7 +126,7 @@ void Files::extractZip(const std::string &restrict zipName, const std::string &restrict outDir) { VirtFs::mountZip(zipName, Append_false); - copyPhysFsDir(inDir, outDir); + copyVirtFsDir(inDir, outDir); VirtFs::unmountZip(zipName); remove(zipName.c_str()); } |