Libretro: Fix adding codes with hooks
Vicki Pfau vi@endrift.com
Wed, 26 Dec 2018 13:28:08 -0800
3 files changed,
5 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -143,6 +143,7 @@ - Core: Reroot timing list when (de)scheduling
- GB Video: Changing LYC while LCDC off doesn't affect STAT (fixes mgba.io/i/1224) - GBA I/O: SOUNDCNT_HI is readable when sound is off - SDL: Fix handling of invalid gamepads (fixes mgba.io/i/1239) + - Libretro: Fix adding codes with hooks Misc: - mGUI: Add SGB border configuration option - mGUI: Add support for different settings types
M
src/gba/cheats.c
→
src/gba/cheats.c
@@ -276,6 +276,9 @@ static void GBACheatRefresh(struct mCheatSet* cheats, struct mCheatDevice* device) {
struct GBACheatSet* gbaset = (struct GBACheatSet*) cheats; if (cheats->enabled) { _patchROM(device, gbaset); + if (gbaset->hook && !gbaset->hook->reentries) { + _addBreakpoint(device, gbaset); + } } else { _unpatchROM(device, gbaset); }
M
src/platform/libretro/libretro.c
→
src/platform/libretro/libretro.c
@@ -657,6 +657,7 @@ ++pos;
} } #endif + cheatSet->refresh(cheatSet, device); } unsigned retro_get_region(void) {