GBA Cheats: Fix value incrementing in CB slide codes (fixes #1501)

This commit is contained in:
Vicki Pfau 2019-08-02 18:33:16 -07:00
parent 6284ef4120
commit e98560e931
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ Other fixes:
- Libretro: Fix crash changing allowing opposing directions (hhromic) - Libretro: Fix crash changing allowing opposing directions (hhromic)
- Qt: Fix race conditions initializing GDB stub - Qt: Fix race conditions initializing GDB stub
- GBA: Set up GPIO mapping on null and ELF ROM regions (fixes mgba.io/i/1481) - 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: Misc:
- Qt: Make mute menu option also toggle fast-forward mute (fixes mgba.io/i/1424) - Qt: Make mute menu option also toggle fast-forward mute (fixes mgba.io/i/1424)
- Qt: Show error message if file failed to load - Qt: Show error message if file failed to load

View File

@ -201,7 +201,7 @@ bool GBACheatAddCodeBreaker(struct GBACheatSet* cheats, uint32_t op1, uint16_t o
struct mCheat* incompleteCheat = mCheatListGetPointer(&cheats->d.list, cheats->incompleteCheat); struct mCheat* incompleteCheat = mCheatListGetPointer(&cheats->d.list, cheats->incompleteCheat);
incompleteCheat->repeat = op1 & 0xFFFF; incompleteCheat->repeat = op1 & 0xFFFF;
incompleteCheat->addressOffset = op2; incompleteCheat->addressOffset = op2;
incompleteCheat->operandOffset = 0; incompleteCheat->operandOffset = op1 >> 16;
cheats->incompleteCheat = COMPLETE; cheats->incompleteCheat = COMPLETE;
return true; return true;
} }