GBA Cheats: Fix GameShark ROM patches

This commit is contained in:
Tyler Wade 2016-10-21 00:53:42 -05:00 committed by Jeffrey Pfau
parent 8a572ab136
commit df27a1558e
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Bugfixes:
- Qt: Fix changing resolution of software renderer
- Qt: Fix setting overrides
- Qt: Fix cut off tiles and alignment issues in tile viewer
- GBA Cheats: Fix GameShark ROM patches
0.5.1: (2016-10-05)
Bugfixes:

View File

@ -145,7 +145,7 @@ bool GBACheatAddGameSharkRaw(struct GBACheatSet* cheats, uint32_t op1, uint32_t
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;