Skip to content

Commit

Permalink
Explicitly check for the extra ram to be available and working when r…
Browse files Browse the repository at this point in the history
…unning off a SuperCard (#2493)

The SuperCard Rumble was being detected as "SuperCard" and assumed the extra ram was available, but that cart got no such memory
  • Loading branch information
edo9300 authored Nov 29, 2024
1 parent cfea344 commit d9fc888
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion title/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1885,7 +1885,11 @@ int titleMode(void)
} else if (memcmp(io_dldi_data->friendlyName, "G6", 2) == 0) {
*(u16*)(0x020000C0) = 0x3647;
} else if (memcmp(io_dldi_data->friendlyName, "SuperCard", 9) == 0 || memcmp(io_dldi_data->friendlyName, "SCSD", 4) == 0) {
*(u16*)(0x020000C0) = 0x4353;
_SC_changeMode(SC_MODE_RAM);
*(vu16*)(0x08000000) = 0x4D54;
if(*(vu16*)(0x08000000) == 0x4D54) {
*(u16*)(0x020000C0) = 0x4353;
}
}
}
}
Expand Down

0 comments on commit d9fc888

Please sign in to comment.