GBA Cheats: Fix slide codes not initializing properly

This commit is contained in:
Vicki Pfau 2017-11-11 11:20:39 -08:00
parent 5134e39681
commit 15127751e1
2 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,7 @@ Bugfixes:
- GBA Savedata: Fix crash when resizing flash - GBA Savedata: Fix crash when resizing flash
- GBA Video: Add delay when enabling BGs (fixes mgba.io/i/744, mgba.io/i/752) - GBA Video: Add delay when enabling BGs (fixes mgba.io/i/744, mgba.io/i/752)
- GB Memory: HDMAs should not start when LCD is off (fixes mgba.io/i/310) - GB Memory: HDMAs should not start when LCD is off (fixes mgba.io/i/310)
- GBA Cheats: Fix slide codes not initializing properly
Misc: Misc:
- GBA Timer: Use global cycles for timers - GBA Timer: Use global cycles for timers
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722) - GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)

View File

@ -190,18 +190,21 @@ static bool _addPAR3Special(struct GBACheatSet* cheats, uint32_t op2) {
return false; return false;
case PAR3_OTHER_FILL_1: case PAR3_OTHER_FILL_1:
cheat = mCheatListAppend(&cheats->d.list); cheat = mCheatListAppend(&cheats->d.list);
cheat->type = CHEAT_ASSIGN;
cheat->address = _parAddr(op2); cheat->address = _parAddr(op2);
cheat->width = 1; cheat->width = 1;
cheats->incompleteCheat = mCheatListIndex(&cheats->d.list, cheat); cheats->incompleteCheat = mCheatListIndex(&cheats->d.list, cheat);
break; break;
case PAR3_OTHER_FILL_2: case PAR3_OTHER_FILL_2:
cheat = mCheatListAppend(&cheats->d.list); cheat = mCheatListAppend(&cheats->d.list);
cheat->type = CHEAT_ASSIGN;
cheat->address = _parAddr(op2); cheat->address = _parAddr(op2);
cheat->width = 2; cheat->width = 2;
cheats->incompleteCheat = mCheatListIndex(&cheats->d.list, cheat); cheats->incompleteCheat = mCheatListIndex(&cheats->d.list, cheat);
break; break;
case PAR3_OTHER_FILL_4: case PAR3_OTHER_FILL_4:
cheat = mCheatListAppend(&cheats->d.list); cheat = mCheatListAppend(&cheats->d.list);
cheat->type = CHEAT_ASSIGN;
cheat->address = _parAddr(op2); cheat->address = _parAddr(op2);
cheat->width = 4; cheat->width = 4;
cheats->incompleteCheat = mCheatListIndex(&cheats->d.list, cheat); cheats->incompleteCheat = mCheatListIndex(&cheats->d.list, cheat);