diff options
| author | SupSuper | 2018-11-20 02:11:59 +0000 |
|---|---|---|
| committer | Thierry Crozat | 2018-12-16 10:48:13 +0000 |
| commit | fbc9c7d371a4a123f3180ed54f26dfb5799fcc36 (patch) | |
| tree | 466f031d69e0a6881ec0f9215cb816f67754215a /common | |
| parent | 5fce1ae46400576c7d65a9ea63ff1c00952cf71c (diff) | |
| download | scummvm-rg350-fbc9c7d371a4a123f3180ed54f26dfb5799fcc36.tar.gz scummvm-rg350-fbc9c7d371a4a123f3180ed54f26dfb5799fcc36.tar.bz2 scummvm-rg350-fbc9c7d371a4a123f3180ed54f26dfb5799fcc36.zip | |
BACKENDS: Hook GUI browser to DialogManager
Diffstat (limited to 'common')
| -rw-r--r-- | common/dialogs.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/common/dialogs.h b/common/dialogs.h index 70c4837aa5..76a5174822 100644 --- a/common/dialogs.h +++ b/common/dialogs.h @@ -24,7 +24,7 @@ #define COMMON_DIALOG_MANAGER_H #include "common/scummsys.h" -#include "common/str.h" +#include "common/fs.h" #if defined(USE_SYSDIALOGS) @@ -48,9 +48,14 @@ public: virtual ~DialogManager() {} /** - * Displays a dialog for selecting a file or folder. + * Displays a dialog for selecting a file or folder in the filesystem. + * + * @param title The dialog title + * @param choice The path selected by the user + * @param isDirBrowser Restrict selection to directories + * @return The dialog result */ - virtual DialogResult showFileBrowser() { return kDialogError; } + virtual DialogResult showFileBrowser(const char *title, FSNode &choice, bool isDirBrowser = false) { return kDialogError; } }; } // End of namespace Common |
