diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-21 20:16:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-21 20:16:36 +0300 |
commit | 80f7177ea4ce0185e1ef3355e91dcf14617d0f09 (patch) | |
tree | 78e8453d25645b85f2610a504b4a248acee5fb9c /src/utils/files.cpp | |
parent | c5327f3b1d10171ff2a97546ea49e350b1725c24 (diff) | |
parent | 0dd6ab2bfdee4527ca0960b4e7a64e257bb93fa3 (diff) | |
download | plus-80f7177ea4ce0185e1ef3355e91dcf14617d0f09.tar.gz plus-80f7177ea4ce0185e1ef3355e91dcf14617d0f09.tar.bz2 plus-80f7177ea4ce0185e1ef3355e91dcf14617d0f09.tar.xz plus-80f7177ea4ce0185e1ef3355e91dcf14617d0f09.zip |
Merge branch 'master' into stable
Diffstat (limited to 'src/utils/files.cpp')
-rw-r--r-- | src/utils/files.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/utils/files.cpp b/src/utils/files.cpp index 2d7994f8a..cb43ff5df 100644 --- a/src/utils/files.cpp +++ b/src/utils/files.cpp @@ -75,8 +75,8 @@ void Files::setCopyCallBack(Files::CopyFileCallbackPtr callback) mCallbackPtr = callback; } -void Files::copyPhysFsFile(const std::string &inFile, - const std::string &outFile) +void Files::copyPhysFsFile(const std::string &restrict inFile, + const std::string &restrict outFile) { int size = 0; void *const buf = ResourceManager::loadFile(inFile, size); @@ -93,7 +93,8 @@ void Files::copyPhysFsFile(const std::string &inFile, #endif } -void Files::copyPhysFsDir(const std::string &inDir, const std::string &outDir) +void Files::copyPhysFsDir(const std::string &restrict inDir, + const std::string &restrict outDir) { mkdir_r(outDir.c_str()); char **files = PhysFs::enumerateFiles(inDir.c_str()); @@ -109,8 +110,9 @@ void Files::copyPhysFsDir(const std::string &inDir, const std::string &outDir) PhysFs::freeList(files); } -void Files::extractZip(const std::string &zipName, const std::string &inDir, - const std::string &outDir) +void Files::extractZip(const std::string &restrict zipName, + const std::string &restrict inDir, + const std::string &restrict outDir) { const ResourceManager *const resman = ResourceManager::getInstance(); resman->addToSearchPath(zipName, false); @@ -121,7 +123,8 @@ void Files::extractZip(const std::string &zipName, const std::string &inDir, #endif // ANDROID __native_client__ -int Files::renameFile(const std::string &srcName, const std::string &dstName) +int Files::renameFile(const std::string &restrict srcName, + const std::string &restrict dstName) { FILE *srcFile = fopen(srcName.c_str(), "rb"); if (srcFile == nullptr) |