aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorThanasis Antoniou2019-09-15 00:46:02 +0300
committerThanasis Antoniou2019-09-15 00:46:02 +0300
commite7d331fe9401590e0782080a13dc4d3a741bde99 (patch)
tree38b2bfc3f38158e1a24cb0115128ffd856023171 /backends
parent1fd01c82ae67861a6a8fbc26d2a3ff7be28e7199 (diff)
downloadscummvm-rg350-e7d331fe9401590e0782080a13dc4d3a741bde99.tar.gz
scummvm-rg350-e7d331fe9401590e0782080a13dc4d3a741bde99.tar.bz2
scummvm-rg350-e7d331fe9401590e0782080a13dc4d3a741bde99.zip
ANDROID: Use FORBIDDEN_SYMBOL_EXCEPTION_getenv for browser_lastpath purposes
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/android/android.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index 288e662bb4..a5dedb08eb 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -22,6 +22,8 @@
#if defined(__ANDROID__)
+#define FORBIDDEN_SYMBOL_EXCEPTION_getenv(a)
+
// Allow use of stuff in <time.h>
#define FORBIDDEN_SYMBOL_EXCEPTION_time_h
@@ -295,8 +297,8 @@ void OSystem_Android::initBackend() {
ConfMan.setBool("FM_high_quality", false);
ConfMan.setBool("FM_medium_quality", true);
- if (!ConfMan.hasKey("browser_lastpath"))
- ConfMan.set("browser_lastpath", "/storage");
+ if (!ConfMan.hasKey("browser_lastpath") || (ConfMan.hasKey("browser_lastpath") && (ConfMan.get("browser_lastpath") == "/storage")))
+ ConfMan.set("browser_lastpath", getenv("SDCARD"));
if (ConfMan.hasKey("touchpad_mouse_mode"))
_touchpad_mode = ConfMan.getBool("touchpad_mouse_mode");