From 04ff0f1ec531f15e1102261ec67b49e85137a34b Mon Sep 17 00:00:00 2001 From: lif <> Date: Tue, 24 Dec 2024 19:54:06 -0800 Subject: [PATCH] fix windows filter dropdown --- main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 2d6554e..0cc6ff2 100644 --- a/main.c +++ b/main.c @@ -90,7 +90,11 @@ enum mColorFormat pixfmt_sdl_to_mgba(uint32_t sdl_fmt) { } } -const SDL_DialogFileFilter DIALOG_FILENAME_FILTER[1] = {{ "Gameboy Camera ROM", "gb" }}; +const SDL_DialogFileFilter DIALOG_FILENAME_FILTER[] = { + { "Gameboy Camera ROM (*.gb)", "gb" }, + { "", "" }, + { NULL, NULL }, +}; static void SDLCALL dialog_callback(void* userdata, const char* const* files, int filter) { struct AppState* st = (struct AppState*)userdata;