Cheats: Fix indirect write cheats (fixes #2026)
Vicki Pfau vi@endrift.com
Wed, 27 Jan 2021 20:24:26 -0800
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -58,6 +58,7 @@ - SM83: Emulate HALT bug
Other fixes: - 3DS: Fix thread cleanup - All: Improve export headers (fixes mgba.io/i/1738) + - Cheats: Fix indirect write cheats (fixes mgba.io/i/2026) - CMake: Fix build with downstream minizip that exports incompatible symbols - CMake: Link with correct OpenGL library (fixes mgba.io/i/1872) - Core: Ensure ELF regions can be written before trying
M
src/core/cheats.c
→
src/core/cheats.c
@@ -666,7 +666,7 @@ performAssignment = true;
break; case CHEAT_ASSIGN_INDIRECT: value = operand; - address = _readMem(device->p, address + cheat->addressOffset, 4); + address = _readMem(device->p, address, 4) + cheat->addressOffset; performAssignment = true; break; case CHEAT_AND: