GBA Cheats: Fix GameShark ROM patches
Tyler Wade wayedt@gmail.com
Fri, 21 Oct 2016 00:53:42 -0500
2 files changed,
2 insertions(+),
1 deletions(-)
M
src/gba/cheats/gameshark.c
→
src/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;