aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/commandLine.cpp1
-rw-r--r--gui/browser.cpp8
2 files changed, 6 insertions, 3 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index 3019998f09..b4a9174802 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -284,6 +284,7 @@ void registerDefaults() {
ConfMan.registerDefault("gui_saveload_last_pos", "0");
ConfMan.registerDefault("gui_browser_show_hidden", false);
+ ConfMan.registerDefault("gui_browser_native", true);
ConfMan.registerDefault("game", "");
#ifdef USE_FLUIDSYNTH
diff --git a/gui/browser.cpp b/gui/browser.cpp
index f3176803e3..4c8f0d1295 100644
--- a/gui/browser.cpp
+++ b/gui/browser.cpp
@@ -88,9 +88,11 @@ int BrowserDialog::runModal() {
// Try to use the backend browser
Common::DialogManager *dialogManager = g_system->getDialogManager();
if (dialogManager) {
- Common::DialogManager::DialogResult result = dialogManager->showFileBrowser(_title, _choice, _isDirBrowser);
- if (result != Common::DialogManager::kDialogError) {
- return result;
+ if (ConfMan.getBool("gui_browser_native", Common::ConfigManager::kApplicationDomain)) {
+ Common::DialogManager::DialogResult result = dialogManager->showFileBrowser(_title, _choice, _isDirBrowser);
+ if (result != Common::DialogManager::kDialogError) {
+ return result;
+ }
}
}
#endif