all repos — mgba @ 168cad7f9cb9df70fcad15b6d89769d8d96834d2

mGBA Game Boy Advance Emulator

Fix PARv3 If-AND code types (fixes #913) (#914)

Prof. 9 prof9@outlook.com
Fri, 20 Oct 2017 03:06:47 +0200
commit

168cad7f9cb9df70fcad15b6d89769d8d96834d2

parent

523aaf14973d748ff0c7fe68c5a6338976696466

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M include/mgba/internal/gba/cheats.hinclude/mgba/internal/gba/cheats.h

@@ -63,7 +63,7 @@ PAR3_COND_LT = 0x18000000,

PAR3_COND_GT = 0x20000000, PAR3_COND_ULT = 0x28000000, PAR3_COND_UGT = 0x30000000, - PAR3_COND_LAND = 0x38000000, + PAR3_COND_AND = 0x38000000, }; enum GBAActionReplay3Width {
M src/gba/cheats/parv3.csrc/gba/cheats/parv3.c

@@ -132,8 +132,8 @@ break;

case PAR3_COND_UGT: cheat->type = CHEAT_IF_UGT; break; - case PAR3_COND_LAND: - cheat->type = CHEAT_IF_LAND; + case PAR3_COND_AND: + cheat->type = CHEAT_IF_AND; break; } return true;