mirror of https://github.com/mgba-emu/mgba.git
Fix SIO loading of a driver that is for the current mode
This commit is contained in:
parent
9c8e5fc222
commit
764b3fce10
|
@ -89,10 +89,10 @@ void GBASIOSetDriver(struct GBASIO* sio, struct GBASIODriver* driver, enum GBASI
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (*driverLoc && *driverLoc == sio->activeDriver) {
|
||||
if (sio->mode == mode) {
|
||||
sio->activeDriver = driver;
|
||||
if ((*driverLoc)->load) {
|
||||
(*driverLoc)->load(*driverLoc);
|
||||
if (driver->load) {
|
||||
driver->load(driver);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue