mirror of https://github.com/mgba-emu/mgba.git
GBA SIO: Fix double-unloading active driver
This commit is contained in:
parent
e9b1f879c1
commit
1815f1d961
1
CHANGES
1
CHANGES
|
@ -1,6 +1,7 @@
|
|||
0.8.2: (Future)
|
||||
Emulation fixes:
|
||||
- GBA SIO: Fix Multiplayer busy bit
|
||||
- GBA SIO: Fix double-unloading active driver
|
||||
Other fixes:
|
||||
- Core: Fix ELF loading regression (fixes mgba.io/i/1669)
|
||||
- Core: Fix crash modifying hash table entry (fixes mgba.io/i/1673)
|
||||
|
|
|
@ -75,10 +75,13 @@ void GBASIODeinit(struct GBASIO* sio) {
|
|||
}
|
||||
|
||||
void GBASIOReset(struct GBASIO* sio) {
|
||||
GBASIODeinit(sio);
|
||||
if (sio->activeDriver && sio->activeDriver->unload) {
|
||||
sio->activeDriver->unload(sio->activeDriver);
|
||||
}
|
||||
sio->rcnt = RCNT_INITIAL;
|
||||
sio->siocnt = 0;
|
||||
sio->mode = -1;
|
||||
sio->activeDriver = NULL;
|
||||
_switchMode(sio);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue