mirror of https://github.com/snes9xgit/snes9x.git
Fix GoldFinger cheats (ilag11111) (closes #306)
This commit is contained in:
parent
470ea70687
commit
671c124e24
|
@ -261,6 +261,9 @@ const char * S9xGoldFingerToRaw (const char *code, uint32 &address, bool8 &sram,
|
||||||
if (sscanf(tmp, "%x", &address) != 1)
|
if (sscanf(tmp, "%x", &address) != 1)
|
||||||
return ("Invalid Gold Finger code.");
|
return ("Invalid Gold Finger code.");
|
||||||
|
|
||||||
|
// Correct GoldFinger Address
|
||||||
|
address = (address & 0x7FFF) | ((address & 0x7F8000) << 1) | 0x8000;
|
||||||
|
|
||||||
for (i = 0; i < 3; i++)
|
for (i = 0; i < 3; i++)
|
||||||
{
|
{
|
||||||
unsigned int byte;
|
unsigned int byte;
|
||||||
|
|
Loading…
Reference in New Issue