Fix SIO loading of a driver that is for the current mode

This commit is contained in:
Jeffrey Pfau 2014-02-08 03:22:43 -08:00
parent 9c8e5fc222
commit 764b3fce10
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}
}