Skip to content

Commit 1d7e645

Browse files
authored
Fix wrong bottom cart texture in quickmenu if using SLOT2 flashcart (#2491)
If the current dldi is a slot2 dldi, properly display the right texture as "SLOT 2" entry in the ds quick menu instead of the "no cart inserted" one
1 parent eaf5d53 commit 1d7e645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickmenu/arm9/source/graphics/graphics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ auto getMenuEntryTexture(MenuEntry entry) {
563563
return &dlp_icons.images[0];
564564
case MenuEntry::GBA:
565565
{
566-
bool hasGbaCart = sys().isRegularDS() && (((u8*)GBAROM)[0xB2] == 0x96);
566+
bool hasGbaCart = sys().isRegularDS() && ((io_dldi_data->ioInterface.features & FEATURE_SLOT_GBA) || (((u8*)GBAROM)[0xB2] == 0x96));
567567
if(hasGbaCart || sdFound()) {
568568
if(initialTouchedPosition == MenuEntry::GBA) {
569569
if(currentTouchedPosition != MenuEntry::GBA)

0 commit comments

Comments
 (0)