summaryrefslogtreecommitdiff
path: root/src/utils/files.cpp
diff options
context:
space:
mode:
authorVasily <danilka.pro@gmail.com>2015-12-01 03:56:36 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-01 04:02:25 +0300
commitc287f54adf5418ec6d11d4b5bb091040d00390dc (patch)
treebe788affdb8a2bc00765566d8348bed720aa0bdb /src/utils/files.cpp
parent595c6fb41f4678ce6f331f91fc91abba0f263b6f (diff)
downloadmanaverse-c287f54adf5418ec6d11d4b5bb091040d00390dc.tar.gz
manaverse-c287f54adf5418ec6d11d4b5bb091040d00390dc.tar.bz2
manaverse-c287f54adf5418ec6d11d4b5bb091040d00390dc.tar.xz
manaverse-c287f54adf5418ec6d11d4b5bb091040d00390dc.zip
Added NaCl data.zip PhysFS support
Diffstat (limited to 'src/utils/files.cpp')
-rw-r--r--src/utils/files.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/files.cpp b/src/utils/files.cpp
index 07e3b2e83..726f33225 100644
--- a/src/utils/files.cpp
+++ b/src/utils/files.cpp
@@ -258,6 +258,11 @@ std::string Files::getPath(const std::string &file)
if (tmp)
{
path = std::string(tmp).append(dirSeparator).append(file);
+#if defined __native_client__
+ std::string dataZip = "/http/data.zip/";
+ if (path.substr(0, dataZip.length()) == dataZip)
+ path = path.replace(0, dataZip.length(), "/http/data/");
+#endif
}
else
{