GBA Cheats: Fix cheats setting the Action Replay version
Jeffrey Pfau jeffrey@endrift.com
Sun, 24 Jan 2016 14:23:59 -0800
3 files changed,
8 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -35,6 +35,7 @@ - Qt: Fix some potential crashes with the gamepad mapping
- Debugger: Fix watchpoints in gdb - ARM7: Fix decoding of some ARM ALU instructions with shifters - Qt: Fix keys being mapped incorrectly when loading configuration file + - GBA Cheats: Fix cheats setting the Action Replay version Misc: - Qt: Window size command line options are now supported - Qt: Increase usability of key mapper
M
src/gba/cheats/gameshark.c
→
src/gba/cheats/gameshark.c
@@ -75,12 +75,14 @@ }
} void GBACheatSetGameSharkVersion(struct GBACheatSet* cheats, int version) { - cheats->gsaVersion = 1; + cheats->gsaVersion = version; switch (version) { case 1: + case 2: memcpy(cheats->gsaSeeds, GBACheatGameSharkSeeds, 4 * sizeof(uint32_t)); break; case 3: + case 4: memcpy(cheats->gsaSeeds, GBACheatProActionReplaySeeds, 4 * sizeof(uint32_t)); break; }@@ -198,9 +200,11 @@
switch (set->gsaVersion) { case 0: case 3: + case 4: GBACheatSetGameSharkVersion(set, 1); // Fall through case 1: + case 2: GBACheatDecryptGameShark(&o1, &o2, set->gsaSeeds); return GBACheatAddGameSharkRaw(set, o1, o2); }
M
src/gba/cheats/parv3.c
→
src/gba/cheats/parv3.c
@@ -298,9 +298,11 @@
switch (set->gsaVersion) { case 0: case 1: + case 2: GBACheatSetGameSharkVersion(set, 3); // Fall through case 3: + case 4: GBACheatDecryptGameShark(&o1, &o2, set->gsaSeeds); return GBACheatAddProActionReplayRaw(set, o1, o2); }