all repos — mgba @ 910089b51455956132a72892ec8fa6a869ef74d8

mGBA Game Boy Advance Emulator

GB Cheats: Fix Game Genie check code (fixes #2055)
Vicki Pfau vi@endrift.com
Wed, 24 Feb 2021 19:36:25 -0800
commit

910089b51455956132a72892ec8fa6a869ef74d8

parent

1e017ade23e1bac555f84d4283cfc13ab532bed8

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gb/cheats.csrc/gb/cheats.c

@@ -98,7 +98,7 @@ uint32_t value = ((op3 & 0xF00) << 20) | (op3 & 0xF);

value = ROR(value, 2); value |= value >> 24; value ^= 0xBA; - patch->checkValue = value; + patch->checkValue = value & 0xFF; patch->check = true; } else { patch->check = false;