all repos — mgba @ 6442d17b4c0012a68683b052a0c1bbafd2318722

mGBA Game Boy Advance Emulator

Libretro: Fix adding codes with hooks
Vicki Pfau vi@endrift.com
Wed, 26 Dec 2018 13:28:08 -0800
commit

6442d17b4c0012a68683b052a0c1bbafd2318722

parent

062ba0767c25aaf647f3caf967f86bb860037066

3 files changed, 5 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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.csrc/platform/libretro/libretro.c

@@ -657,6 +657,7 @@ ++pos;

} } #endif + cheatSet->refresh(cheatSet, device); } unsigned retro_get_region(void) {