aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/androidsdl/androidsdl-main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/platform/androidsdl/androidsdl-main.cpp b/backends/platform/androidsdl/androidsdl-main.cpp
index 26a73579c0..364d686c1b 100644
--- a/backends/platform/androidsdl/androidsdl-main.cpp
+++ b/backends/platform/androidsdl/androidsdl-main.cpp
@@ -20,11 +20,16 @@
*
*/
+#define FORBIDDEN_SYMBOL_EXCEPTION_system
+
#include "backends/platform/androidsdl/androidsdl-sdl.h"
#include "base/main.h"
int main(int argc, char *argv[]) {
+ // Copy over config file from previous version of ScummVM if applicable
+ system("ls $DATADIR/.config/scummvm/scummvm.ini || (mkdir -p $DATADIR/.config/scummvm && cp $APPDIR/scummvmrc $DATADIR/.config/scummvm/scummvm.ini )");
+
// Create our OSystem instance
g_system = new OSystem_ANDROIDSDL();
assert(g_system);