all repos — mgba @ 81098060aa14903062555bdd3d7a2ec50733344f

mGBA Game Boy Advance Emulator

GBA Cheats: Fix PARv3 Thumb hooks
Vicki Pfau vi@endrift.com
Sat, 22 Jun 2019 13:04:34 -0700
commit

81098060aa14903062555bdd3d7a2ec50733344f

parent

f3ec9db9d7c8988fad58cbd650697aa87f3e29fb

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -34,6 +34,7 @@ - Core: Fix crashes if core directories aren't set

- Qt: Fix menu bar staying hidden in full screen (fixes mgba.io/i/317) - GB SIO: Fix lockstep failing games aren't reloaded - Core: Fix crash when exiting game with cheats loaded + - GBA Cheats: Fix PARv3 Thumb hooks Misc: - GBA Savedata: EEPROM performance fixes - GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
M src/gba/cheats/parv3.csrc/gba/cheats/parv3.c

@@ -284,7 +284,7 @@ if (cheats->hook) {

return false; } cheats->hook = malloc(sizeof(*cheats->hook)); - cheats->hook->address = BASE_CART0 | (op1 & (SIZE_CART0 - 1)); + cheats->hook->address = BASE_CART0 | (op1 & (SIZE_CART0 - 2)); cheats->hook->mode = MODE_THUMB; cheats->hook->refs = 1; cheats->hook->reentries = 0;