Add GoldFinger cheats too. Just for completeness' sake, I don't think anyone'll use them.

This commit is contained in:
Alcaro 2013-07-26 19:58:44 +02:00
parent a720f8280f
commit 6c3a7f77f3
1 changed files with 5 additions and 1 deletions

View File

@ -228,8 +228,12 @@ void retro_cheat_set(unsigned index, bool enabled, const char *code)
uint32 address;
uint8 val;
bool8 sram;
uint8 bytes[3];//used only by GoldFinger, ignored for now
if (S9xGameGenieToRaw(code, address, val)!=NULL &&
S9xProActionReplayToRaw(code, address, val)!=NULL)
S9xProActionReplayToRaw(code, address, val)!=NULL &&
S9xGoldFingerToRaw(code, address, sram, val, bytes)!=NULL)
{ // bad code, ignore
return;
}