all repos — mgba @ aba3ef017cbed199f901b885a8cacbd7f3c776b9

mGBA Game Boy Advance Emulator

GBA Cheats: Fix value incrementing in CB slide codes (fixes #1501)
Vicki Pfau vi@endrift.com
Fri, 02 Aug 2019 18:33:16 -0700
commit

aba3ef017cbed199f901b885a8cacbd7f3c776b9

parent

2d737ff367cc7a0a4f5bd9bfe50e71f65059337d

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

jump to
M CHANGESCHANGES

@@ -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.csrc/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; }