summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b7f721626..ea9ddb8a3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -241,7 +241,11 @@ int main(int argc, char *argv[])
}
// Initialize PhysicsFS
+#ifdef ANDROID
+ if (!PHYSFS_init((getRealPath(".") + "/fakebinary").c_str()))
+#else
if (!PHYSFS_init(argv[0]))
+#endif
{
std::cout << "Error while initializing PhysFS: "
<< PHYSFS_getLastError() << std::endl;