GBA: Improve reset behavior

This commit is contained in:
Jeffrey Pfau 2014-11-20 22:55:29 -08:00
parent 1205ff1895
commit cf55fcbb52
1 changed files with 6 additions and 0 deletions

View File

@ -201,6 +201,12 @@ void GBAReset(struct ARMCore* cpu) {
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) {