aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-16 18:32:29 +0200
committerGitHub2016-09-16 18:32:29 +0200
commit7360b651b1d07b7881e56c9c176afcb2a042c9b2 (patch)
tree983bf292ac5b696c4e01ab4019fe2f8c31aea42e
parentc9dfcea6800765dbde4d2db87212c5238b086310 (diff)
parentcc945d6105114ab46271ff625ba514b40d0e7ecf (diff)
downloadscummvm-rg350-7360b651b1d07b7881e56c9c176afcb2a042c9b2.tar.gz
scummvm-rg350-7360b651b1d07b7881e56c9c176afcb2a042c9b2.tar.bz2
scummvm-rg350-7360b651b1d07b7881e56c9c176afcb2a042c9b2.zip
Merge pull request #829 from lubomyr/master
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();
}