fix windows filter dropdown

This commit is contained in:
lif 2024-12-24 19:54:06 -08:00
parent 5a80a5783e
commit 04ff0f1ec5
1 changed files with 5 additions and 1 deletions

6
main.c
View File

@ -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;