GBA Cheats: Fix value incrementing in CB slide codes (fixes #1501)
Vicki Pfau vi@endrift.com
Fri, 02 Aug 2019 18:33:16 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -50,6 +50,7 @@ - mGUI: Fix crash if last loaded ROM directory disappears (fixes mgba.io/i/1466)
- Libretro: Fix crash changing allowing opposing directions (hhromic) - Qt: Fix race conditions initializing GDB stub - GBA: Set up GPIO mapping on null and ELF ROM regions (fixes mgba.io/i/1481) + - GBA Cheats: Fix value incrementing in CB slide codes (fixes mgba.io/i/1501) Misc: - GBA Savedata: EEPROM performance fixes - GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
M
src/gba/cheats/codebreaker.c
→
src/gba/cheats/codebreaker.c
@@ -201,7 +201,7 @@ if (cheats->incompleteCheat != COMPLETE) {
struct mCheat* incompleteCheat = mCheatListGetPointer(&cheats->d.list, cheats->incompleteCheat); incompleteCheat->repeat = op1 & 0xFFFF; incompleteCheat->addressOffset = op2; - incompleteCheat->operandOffset = 0; + incompleteCheat->operandOffset = op1 >> 16; cheats->incompleteCheat = COMPLETE; return true; }