aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorThierry Crozat2018-12-16 15:03:27 +0000
committerThierry Crozat2018-12-16 15:58:43 +0000
commit319b90fb21f5c1e4ca9d9196b65aadb6e2529c09 (patch)
treeee31fcfb0f8bc0993c67b052806b70c7ca05be57 /backends
parentd320c36e588cdefac9c24a0d9743d79539f6d198 (diff)
downloadscummvm-rg350-319b90fb21f5c1e4ca9d9196b65aadb6e2529c09.tar.gz
scummvm-rg350-319b90fb21f5c1e4ca9d9196b65aadb6e2529c09.tar.bz2
scummvm-rg350-319b90fb21f5c1e4ca9d9196b65aadb6e2529c09.zip
BACKENDS: Add kFeatureNativeFileBowserDialog
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/sdl/macosx/macosx.cpp6
-rw-r--r--backends/platform/sdl/win32/win32.cpp5
2 files changed, 11 insertions, 0 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);
}