all repos — mgba @ 344af9fec525c23cbeda56b7cc52f58dc7b2514a

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

344af9fec525c23cbeda56b7cc52f58dc7b2514a

parent

553fbdfd37a5cbfb2feaa593d52d5d02d4f180f3

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

jump to
M CHANGESCHANGES

@@ -132,6 +132,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

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

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