all repos — mgba @ 644bdec47c78f4b1121a4bb3bd0fce31f5d5dced

mGBA Game Boy Advance Emulator

Merge pull request #450 from waedt/master

GBA Cheats: Fix GameShark ROM patches
endrift jeffrey@endrift.com
Fri, 21 Oct 2016 01:59:05 -0700
commit

644bdec47c78f4b1121a4bb3bd0fce31f5d5dced

parent

1ac4a716cc6d0d5ec7ec3733116d28d45049b5fd

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

jump to
M CHANGESCHANGES

@@ -13,6 +13,7 @@ - GB MBC: Fix SRAM dangling pointer with RTC games

- Windows: Fix Unicode directory handling - Qt: Fix changing resolution of software renderer - Qt: Fix setting overrides + - GBA Cheats: Fix GameShark ROM patches Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M src/gba/cheats/gameshark.csrc/gba/cheats/gameshark.c

@@ -145,7 +145,7 @@ cheat->address = op2;

cheats->incompleteCheat = mCheatListIndex(&cheats->d.list, cheat); break; case GSA_PATCH: - cheats->romPatches[0].address = (op1 & 0xFFFFFF) << 1; + cheats->romPatches[0].address = BASE_CART0 | ((op1 & 0xFFFFFF) << 1); cheats->romPatches[0].newValue = op2; cheats->romPatches[0].applied = false; cheats->romPatches[0].exists = true;