From 319b90fb21f5c1e4ca9d9196b65aadb6e2529c09 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sun, 16 Dec 2018 15:03:27 +0000 Subject: BACKENDS: Add kFeatureNativeFileBowserDialog --- backends/platform/sdl/macosx/macosx.cpp | 6 ++++++ backends/platform/sdl/win32/win32.cpp | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'backends/platform/sdl') 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); } -- cgit v1.2.3