all repos — mgba @ cf55fcbb52f91059f59b59d5e8419fffdee679a2

mGBA Game Boy Advance Emulator

GBA: Improve reset behavior
Jeffrey Pfau jeffrey@endrift.com
Thu, 20 Nov 2014 22:55:29 -0800
commit

cf55fcbb52f91059f59b59d5e8419fffdee679a2

parent

1205ff1895b5a2d1c37b23bded43a31d039befec

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/gba/gba.csrc/gba/gba.c

@@ -201,6 +201,12 @@ GBAMemoryReset(gba);

GBAVideoReset(&gba->video); GBAAudioReset(&gba->audio); GBAIOInit(gba); + + GBASIODeinit(&gba->sio); + GBASIOInit(&gba->sio); + + gba->timersEnabled = 0; + memset(gba->timers, 0, sizeof(gba->timers)); } static void GBAProcessEvents(struct ARMCore* cpu) {