diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <SDL_image.h> #include <SDL_mixer.h> +#include <android/log.h> + #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 |