diff options
author | Thierry Crozat | 2018-12-16 15:03:27 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-12-16 15:58:43 +0000 |
commit | 319b90fb21f5c1e4ca9d9196b65aadb6e2529c09 (patch) | |
tree | ee31fcfb0f8bc0993c67b052806b70c7ca05be57 | |
parent | d320c36e588cdefac9c24a0d9743d79539f6d198 (diff) | |
download | scummvm-rg350-319b90fb21f5c1e4ca9d9196b65aadb6e2529c09.tar.gz scummvm-rg350-319b90fb21f5c1e4ca9d9196b65aadb6e2529c09.tar.bz2 scummvm-rg350-319b90fb21f5c1e4ca9d9196b65aadb6e2529c09.zip |
BACKENDS: Add kFeatureNativeFileBowserDialog
-rw-r--r-- | backends/platform/sdl/macosx/macosx.cpp | 6 | ||||
-rw-r--r-- | backends/platform/sdl/win32/win32.cpp | 5 | ||||
-rw-r--r-- | common/system.h | 8 |
3 files changed, 18 insertions, 1 deletions
diff --git a/backends/platform/sdl/macosx/macosx.cpp b/backends/platform/sdl/macosx/macosx.cpp index fcfd93a93d..b58255c271 100644 --- a/backends/platform/sdl/macosx/macosx.cpp +++ b/backends/platform/sdl/macosx/macosx.cpp @@ -110,6 +110,12 @@ void OSystem_MacOSX::addSysArchivesToSearchSet(Common::SearchSet &s, int priorit bool OSystem_MacOSX::hasFeature(Feature f) { if (f == kFeatureDisplayLogFile || f == kFeatureClipboardSupport || f == kFeatureOpenUrl) return true; + +#ifdef USE_SYSDIALOGS + if (f == kFeatureNativeFileBowserDialog) + return true; +#endif + return OSystem_POSIX::hasFeature(f); } diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp index 2a80508881..264a0640ed 100644 --- a/backends/platform/sdl/win32/win32.cpp +++ b/backends/platform/sdl/win32/win32.cpp @@ -109,6 +109,11 @@ bool OSystem_Win32::hasFeature(Feature f) { if (f == kFeatureDisplayLogFile || f == kFeatureOpenUrl) return true; +#ifdef USE_SYSDIALOGS + if (f == kFeatureNativeFileBowserDialog) + return true; +#endif + return OSystem_SDL::hasFeature(f); } diff --git a/common/system.h b/common/system.h index c33dfbb6b3..73a4ad6a2f 100644 --- a/common/system.h +++ b/common/system.h @@ -403,7 +403,13 @@ public: /** * shaders */ - kFeatureShader + kFeatureShader, + + /** + * Supports for using the native system file browser dialog + through the DialogManager. + */ + kFeatureNativeFileBowserDialog }; |