GBA: Improve reset behavior
Jeffrey Pfau jeffrey@endrift.com
Thu, 20 Nov 2014 22:55:29 -0800
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba.c
→
src/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) {