aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/sdl/macosx/macosx.cpp6
-rw-r--r--backends/platform/sdl/win32/win32.cpp5
-rw-r--r--common/system.h8
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
};