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/utils/paths.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/utils/paths.cpp') diff --git a/src/utils/paths.cpp b/src/utils/paths.cpp index dd045cb5a..dbbdf6b31 100644 --- a/src/utils/paths.cpp +++ b/src/utils/paths.cpp @@ -39,6 +39,12 @@ #include #endif +#ifdef ANDROID +#ifdef USE_SDL2 +#include +#endif +#endif + #include "debug.h" std::string getRealPath(const std::string &str) @@ -175,3 +181,10 @@ std::string getDesktopDir() return std::string(PhysFs::getUserDir()).append("Desktop"); #endif } + +#ifdef ANDROID +std::string getSdStoragePath() +{ + return getenv("DATADIR2"); +} +#endif -- cgit v1.2.3-70-g09d2