[SC64][SW] Fixed ROM shadow offset address translation

This commit is contained in:
Mateusz Faderewski 2023-02-14 20:44:43 +01:00
parent 72f6160cf1
commit 46f7b8b794

View File

@ -136,7 +136,7 @@ static bool cfg_translate_address (uint32_t *address, uint32_t length, translate
} }
if (*address >= 0x1FFC0000 && *address < 0x1FFE0000) { if (*address >= 0x1FFC0000 && *address < 0x1FFE0000) {
if ((*address + length) <= 0x1FFE0000) { if ((*address + length) <= 0x1FFE0000) {
*address = *address - 0x1FFC0000 + 0x04E00000; *address = *address - 0x1FFC0000 + 0x04FE0000;
return false; return false;
} }
} }