From 75558a904b0e57f9c7a378dfe160e5eab2b93252 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 6 Aug 2017 15:48:20 +0200 Subject: [PATCH] map editor --- hyperroid/app/src/main/jni/hyper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hyperroid/app/src/main/jni/hyper.cpp b/hyperroid/app/src/main/jni/hyper.cpp index 3ecffa16..f691cfcb 100644 --- a/hyperroid/app/src/main/jni/hyper.cpp +++ b/hyperroid/app/src/main/jni/hyper.cpp @@ -27,6 +27,7 @@ void gdpush(int t); void shareScore(MOBPAR_FORMAL); const char *scorefile, *conffile; +string levelfile, picfile; bool settingsChanged = false; @@ -137,6 +138,8 @@ Java_com_roguetemple_hyperroid_HyperRogue_setFilesDir(MOBPAR_FORMAL, jstring dir sscorefile = nativeString; sscorefile += "/hyperrogue.log"; sconffile = nativeString; sconffile += "/hyperrogue.ini"; scachefile = nativeString; scachefile += "/scorecache.txt"; + levelfile = nativeString; levelfile += "/hyperrogue.lev"; + picfile = nativeString; picfile += "/hyperrogue.pic"; scorefile = sscorefile.c_str(); conffile = sconffile.c_str(); chmod(scorefile, 0777);