all repos — mgba @ 70528c92c728ef5b50087c975bbdcbc4cf1a9c2c

mGBA Game Boy Advance Emulator

GBA Cheats: Fix bad merge
Vicki Pfau vi@endrift.com
Sat, 09 Dec 2017 13:02:34 -0800
commit

70528c92c728ef5b50087c975bbdcbc4cf1a9c2c

parent

9cedf74b77dc0ea1341343cc285ace153ff5ed23

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

jump to
M src/gba/cheats/parv3.csrc/gba/cheats/parv3.c

@@ -222,13 +222,6 @@ }

if (cheats->incompleteCheat != COMPLETE) { struct mCheat* incompleteCheat = mCheatListGetPointer(&cheats->d.list, cheats->incompleteCheat); incompleteCheat->operand = op1 & (0xFFFFFFFFU >> ((4 - incompleteCheat->width) * 8)); - if (cheats->incompleteCheat > 0) { - struct mCheat* lastCheat = mCheatListGetPointer(&cheats->d.list, cheats->incompleteCheat - 1); - if (lastCheat->type == CHEAT_IF_BUTTON) { - cheats->incompleteCheat = COMPLETE; - return true; - } - } incompleteCheat->operandOffset = op2 >> 24; incompleteCheat->repeat = (op2 >> 16) & 0xFF; incompleteCheat->addressOffset = (op2 & 0xFFFF) * incompleteCheat->width;