mirror of https://github.com/mgba-emu/mgba.git
GBA Cheats: Fix bad merge
This commit is contained in:
parent
9cedf74b77
commit
70528c92c7
|
@ -222,13 +222,6 @@ bool GBACheatAddProActionReplayRaw(struct GBACheatSet* cheats, uint32_t op1, uin
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue