summaryrefslogtreecommitdiff
path: root/textscreen/txt_fileselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'textscreen/txt_fileselect.c')
-rw-r--r--textscreen/txt_fileselect.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/textscreen/txt_fileselect.c b/textscreen/txt_fileselect.c
index 52b0dc1c..0ef404b4 100644
--- a/textscreen/txt_fileselect.c
+++ b/textscreen/txt_fileselect.c
@@ -142,8 +142,28 @@ static char *ExecReadOutput(char **argv)
#endif
+// This is currently disabled on Windows because it doesn't work.
+// Current issues:
+// * On Windows Vista+ the mouse cursor freezes when the dialog is
+// opened. This is probably some conflict with SDL (might be
+// resolved by opening the dialog in a separate thread so that
+// TXT_UpdateScreen can be run in the background).
+// * On Windows XP the program exits/crashes when the dialog is
+// closed.
#if defined(_WIN32)
+int TXT_CanSelectFiles(void)
+{
+ return 0;
+}
+
+char *TXT_SelectFile(char *window_title, char **extensions)
+{
+ return NULL;
+}
+
+#elif defined(xxxdisabled_WIN32)
+
// Windows code. Use comdlg32 to pop up a dialog box.
#include <windows.h>