include .sgb, avoid double-browser-prompt on osx (???)

This commit is contained in:
lif 2024-12-27 17:10:54 -08:00
parent 04ff0f1ec5
commit 492f1bf7b2
1 changed files with 2 additions and 1 deletions

3
main.c
View File

@ -91,7 +91,7 @@ enum mColorFormat pixfmt_sdl_to_mgba(uint32_t sdl_fmt) {
} }
const SDL_DialogFileFilter DIALOG_FILENAME_FILTER[] = { const SDL_DialogFileFilter DIALOG_FILENAME_FILTER[] = {
{ "Gameboy Camera ROM (*.gb)", "gb" }, { "Gameboy Camera ROM (*.gb, *.sgb)", "gb;sgb" },
{ "", "" }, { "", "" },
{ NULL, NULL }, { NULL, NULL },
}; };
@ -578,6 +578,7 @@ SDL_AppResult SDL_AppIterate(void* appstate) {
SDL_SetTextureColorMod(st->textures[0], 255, 0, 0); SDL_SetTextureColorMod(st->textures[0], 255, 0, 0);
SDL_SetTextureColorMod(st->textures[1], 0, 255, 0); SDL_SetTextureColorMod(st->textures[1], 0, 255, 0);
SDL_SetTextureColorMod(st->textures[2], 0, 0, 255); SDL_SetTextureColorMod(st->textures[2], 0, 0, 255);
return SDL_APP_CONTINUE;
} }
if (st->camera == NULL) { if (st->camera == NULL) {