mirror of https://github.com/mgba-emu/mgba.git
GBA SIO: Fix RCNT mode selection
This commit is contained in:
parent
dcd2e3a64f
commit
9273a4ca72
|
@ -36,11 +36,11 @@ static void _switchMode(struct GBASIO* sio) {
|
|||
} else {
|
||||
sio->mode = (enum GBASIOMode) (mode & 0xC);
|
||||
}
|
||||
if (oldMode != mode) {
|
||||
if (oldMode != sio->mode) {
|
||||
if (sio->activeDriver && sio->activeDriver->unload) {
|
||||
sio->activeDriver->unload(sio->activeDriver);
|
||||
}
|
||||
sio->activeDriver = _lookupDriver(sio, mode);
|
||||
sio->activeDriver = _lookupDriver(sio, sio->mode);
|
||||
if (sio->activeDriver && sio->activeDriver->load) {
|
||||
sio->activeDriver->load(sio->activeDriver);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue