aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlubomyr2016-09-16 18:07:45 +0200
committerlubomyr2016-09-16 18:07:45 +0200
commitcc945d6105114ab46271ff625ba514b40d0e7ecf (patch)
treec53dfacbc469346217142ede65385a0cf6898c4f
parentbae1f67b656d7c9f09f983a397665be2220b7824 (diff)
downloadscummvm-rg350-cc945d6105114ab46271ff625ba514b40d0e7ecf.tar.gz
scummvm-rg350-cc945d6105114ab46271ff625ba514b40d0e7ecf.tar.bz2
scummvm-rg350-cc945d6105114ab46271ff625ba514b40d0e7ecf.zip
ANDROIDSDL: default config key browser_lastpath changed to '/storage'
-rw-r--r--backends/platform/androidsdl/androidsdl-sdl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/androidsdl/androidsdl-sdl.cpp b/backends/platform/androidsdl/androidsdl-sdl.cpp
index 5e0eaa0408..667b03345f 100644
--- a/backends/platform/androidsdl/androidsdl-sdl.cpp
+++ b/backends/platform/androidsdl/androidsdl-sdl.cpp
@@ -20,18 +20,24 @@
*
*/
+#include "common/config-manager.h"
+
#include "backends/platform/androidsdl/androidsdl-sdl.h"
#include "backends/events/androidsdl/androidsdl-events.h"
#include "backends/graphics/androidsdl/androidsdl-graphics.h"
void OSystem_ANDROIDSDL::initBackend() {
// Create the backend custom managers
+
if (_eventSource == 0)
_eventSource = new AndroidSdlEventSource();
if (_graphicsManager == 0)
_graphicsManager = new AndroidSdlGraphicsManager(_eventSource, _window);
+ if (!ConfMan.hasKey("browser_lastpath"))
+ ConfMan.set("browser_lastpath", "/storage");
+
// Call parent implementation of this method
OSystem_POSIX::initBackend();
}