From c287f54adf5418ec6d11d4b5bb091040d00390dc Mon Sep 17 00:00:00 2001
From: Vasily <danilka.pro@gmail.com>
Date: Tue, 1 Dec 2015 03:56:36 +0300
Subject: Added NaCl data.zip PhysFS support

---
 src/utils/files.cpp | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/utils')

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
     {
-- 
cgit v1.2.3-70-g09d2