From 5f63a59561c423f57f154346e8ae6df3a01f8fb1 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 3 Nov 2008 14:22:37 +0000 Subject: [PATCH] Win32 - added "All Useable Files" option to Open Rom dialog --- desmume/src/windows/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 0d9141cac..c60f638bd 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -1584,6 +1584,10 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM // can't help us with string creation: just put a '|' were a string end // should be, and later transform prior assigning to the OPENFILENAME structure strncpy (fileFilter, "NDS ROM file (*.nds)|*.nds|NDS/GBA ROM File (*.ds.gba)|*.ds.gba|",512); +#ifdef HAVE_LIBZZIP + strncpy (fileFilter, "All Usable Files (*.nds, *.ds.gba, *.zip, *.gz)|*.nds;*.ds.gba;*.zip;*.gz|",512); +#endif + #ifdef HAVE_LIBZZIP strncat (fileFilter, "Zipped NDS ROM file (*.zip)|*.zip|",512 - strlen(fileFilter)); #endif