[Scummvm-git-logs] scummvm master -> 1fd01c82ae67861a6a8fbc26d2a3ff7be28e7199

antoniou79 antoniou at cti.gr
Sat Sep 14 23:29:38 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
1fd01c82ae ANDROID: Set default browser_lastpath to /storage


Commit: 1fd01c82ae67861a6a8fbc26d2a3ff7be28e7199
    https://github.com/scummvm/scummvm/commit/1fd01c82ae67861a6a8fbc26d2a3ff7be28e7199
Author: Thanasis Antoniou (a.antoniou79 at gmail.com)
Date: 2019-09-15T00:28:44+03:00

Commit Message:
ANDROID: Set default browser_lastpath to /storage

Avoid use of get_env

Changed paths:
    backends/platform/android/android.cpp


diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index 7c5608f..288e662 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -295,8 +295,8 @@ void OSystem_Android::initBackend() {
 	ConfMan.setBool("FM_high_quality", false);
 	ConfMan.setBool("FM_medium_quality", true);
 
-	if (!ConfMan.hasKey("browser_lastpath") || (ConfMan.hasKey("browser_lastpath") && (ConfMan.get("browser_lastpath") == "/storage")))
-		ConfMan.set("browser_lastpath", getenv("SDCARD"));
+	if (!ConfMan.hasKey("browser_lastpath"))
+		ConfMan.set("browser_lastpath", "/storage");
 
 	if (ConfMan.hasKey("touchpad_mouse_mode"))
 		_touchpad_mode = ConfMan.getBool("touchpad_mouse_mode");





More information about the Scummvm-git-logs mailing list