summaryrefslogtreecommitdiff
path: root/src/utils/files.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-04 21:50:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-04 22:20:41 +0300
commit57cb5102b2fd47fed46bd85ab07e0135e19dd484 (patch)
treef3f6a0d888611120fcf28c3d57413d71a0b9357c /src/utils/files.h
parent3bd429f0ce19526b6b34a2c27d2d3085f012e192 (diff)
downloadmanaverse-57cb5102b2fd47fed46bd85ab07e0135e19dd484.tar.gz
manaverse-57cb5102b2fd47fed46bd85ab07e0135e19dd484.tar.bz2
manaverse-57cb5102b2fd47fed46bd85ab07e0135e19dd484.tar.xz
manaverse-57cb5102b2fd47fed46bd85ab07e0135e19dd484.zip
improve renameFile function.
add test for this function.
Diffstat (limited to 'src/utils/files.h')
-rw-r--r--src/utils/files.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/files.h b/src/utils/files.h
index 4a44631cf..735812563 100644
--- a/src/utils/files.h
+++ b/src/utils/files.h
@@ -21,7 +21,6 @@
#ifndef UTILS_FILES_H
#define UTILS_FILES_H
-#if defined(ANDROID) || defined(__native_client__)
#include <string>
namespace Files
@@ -29,15 +28,17 @@ namespace Files
#ifdef ANDROID
void extractLocale();
#endif
+
+#if defined(ANDROID) || defined(__native_client__)
void copyPhysFsFile(const std::string &inFile, const std::string &outFile);
void copyPhysFsDir(const std::string &inDir, const std::string &outDir);
void extractZip(const std::string &zipName, const std::string &inDir,
const std::string &outDir);
+#endif // ANDROID __native_client__
int renameFile(const std::string &pFrom, const std::string &pTo);
} // namespace Files
-#endif // ANDROID __native_client__
#endif // UTILS_FILES_H