Skip to content

Commit

Permalink
Fix wrong bottom cart texture in quickmenu if using SLOT2 flashcart
Browse files Browse the repository at this point in the history
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
  • Loading branch information
edo9300 authored Nov 23, 2024
1 parent eaf5d53 commit 47c5965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickmenu/arm9/source/graphics/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ auto getMenuEntryTexture(MenuEntry entry) {
return &dlp_icons.images[0];
case MenuEntry::GBA:
{
bool hasGbaCart = sys().isRegularDS() && (((u8*)GBAROM)[0xB2] == 0x96);
bool hasGbaCart = sys().isRegularDS() && ((io_dldi_data->ioInterface.features & FEATURE_SLOT_GBA) || (((u8*)GBAROM)[0xB2] == 0x96));
if(hasGbaCart || sdFound()) {
if(initialTouchedPosition == MenuEntry::GBA) {
if(currentTouchedPosition != MenuEntry::GBA)
Expand Down

0 comments on commit 47c5965

Please sign in to comment.