mirror of https://github.com/mgba-emu/mgba.git
GBA: Improve reset behavior
This commit is contained in:
parent
1205ff1895
commit
cf55fcbb52
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue