From 43771c2d017f50e82242b45679d786cc3037b7b7 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Wed, 18 Dec 2019 16:56:50 +0800 Subject: [PATCH] gba: don't display gb/gbc roms if goomba is missing. --- menu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/menu.cpp b/menu.cpp index 6c09b92..d8ed92e 100644 --- a/menu.cpp +++ b/menu.cpp @@ -1525,6 +1525,7 @@ void HandleUI(void) if (p[idx] >= '0' && p[idx] <= '9') ioctl_index = p[idx] - '0'; substrcpy(ext, p, 1); + if (!strcasecmp(user_io_get_core_name(), "GBA") && FileExists(user_io_make_filepath(HomeDir, "goomba.rom"))) strcat(ext, "GB GBC"); while (strlen(ext) % 3) strcat(ext, " "); SelectFile(ext, SCANO_DIR | (is_neogeo_core() ? SCANO_NEOGEO | SCANO_NOENTER : 0), MENU_8BIT_MAIN_FILE_SELECTED, MENU_8BIT_MAIN1); }