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 2d737ff367
commit aba3ef017c
2 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ Other fixes:
- 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

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);
incompleteCheat->repeat = op1 & 0xFFFF;
incompleteCheat->addressOffset = op2;
incompleteCheat->operandOffset = 0;
incompleteCheat->operandOffset = op1 >> 16;
cheats->incompleteCheat = COMPLETE;
return true;
}