mirror of https://github.com/mgba-emu/mgba.git
GBA Cheats: Fix GameShark ROM patches
This commit is contained in:
parent
1ac4a716cc
commit
7b75d5d06b
1
CHANGES
1
CHANGES
|
@ -13,6 +13,7 @@ Bugfixes:
|
|||
- 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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue