Don't call FE0A opcode in Shutdown Manager: handle better NewWorld ROMs.

i.e. don't force a "bra" if there was no "beq" beforehand.
This commit is contained in:
gbeauche 2003-05-21 19:31:57 +00:00
parent f47379e887
commit d29a00c17f

View File

@ -2013,7 +2013,9 @@ static bool patch_68k(void)
wp = (uint16 *)(ROM_BASE + base);
if (ROMType == ROMTYPE_ZANZIBAR)
*wp = htons(M68K_RTS);
else
else if (ntohs(wp[-4]) == 0x61ff)
*wp = htons(M68K_RTS);
else if (ntohs(wp[-2]) == 0x6700)
wp[-2] = htons(0x6000); // bra
// Patch PowerOff()