Fix GoldFinger cheats (ilag11111) (closes #306)

This commit is contained in:
OV2 2018-05-26 15:39:22 +02:00
parent 470ea70687
commit 671c124e24
1 changed files with 3 additions and 0 deletions

View File

@ -261,6 +261,9 @@ const char * S9xGoldFingerToRaw (const char *code, uint32 &address, bool8 &sram,
if (sscanf(tmp, "%x", &address) != 1)
return ("Invalid Gold Finger code.");
// Correct GoldFinger Address
address = (address & 0x7FFF) | ((address & 0x7F8000) << 1) | 0x8000;
for (i = 0; i < 3; i++)
{
unsigned int byte;