From 6c3a7f77f33e6b0538e7c3a597b547d16e97f8bc Mon Sep 17 00:00:00 2001 From: Alcaro Date: Fri, 26 Jul 2013 19:58:44 +0200 Subject: [PATCH] Add GoldFinger cheats too. Just for completeness' sake, I don't think anyone'll use them. --- libretro/libretro.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index 12546c4d..42e06322 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -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; }