From 45fc7dfe871e25c913deb56063ca930dafe8b9ae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 21 Sep 2013 21:46:17 +0300 Subject: fix compilation and partial running with SDL2 on Android. --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 68d81eda0..0f7e41b65 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,6 +51,8 @@ #include #include +#include + #include "debug.h" char *selfName = nullptr; @@ -278,7 +280,7 @@ int main(int argc, char *argv[]) // Initialize PhysicsFS #ifdef ANDROID - mkdir_r(getenv("DATADIR2")); + mkdir_r(getSdStoragePath().c_str()); if (!PHYSFS_init((getRealPath(".").append("/fakebinary")).c_str())) #else -- cgit v1.2.3-60-g2f50