diff options
author | SupSuper | 2018-11-22 16:26:04 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-12-16 10:48:13 +0000 |
commit | fc504996d3ecb828b4f47477911c9449ae8779a6 (patch) | |
tree | 412a2042da7eb12992fc289f9ca537983b870846 | |
parent | 7bff9176d582c9c59a341d1a6fbe8ddb4f04e575 (diff) | |
download | scummvm-rg350-fc504996d3ecb828b4f47477911c9449ae8779a6.tar.gz scummvm-rg350-fc504996d3ecb828b4f47477911c9449ae8779a6.tar.bz2 scummvm-rg350-fc504996d3ecb828b4f47477911c9449ae8779a6.zip |
GUI: Allow user to opt between GUI browser and native browser
-rw-r--r-- | base/commandLine.cpp | 1 | ||||
-rw-r--r-- | gui/browser.cpp | 8 |
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 |