Fix SIO loading of a driver that is for the current mode
Jeffrey Pfau jeffrey@endrift.com
Sat, 08 Feb 2014 03:22:43 -0800
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
src/gba/gba-sio.c
→
src/gba/gba-sio.c
@@ -89,10 +89,10 @@ GBALog(sio->p, GBA_LOG_ERROR, "Could not initialize SIO driver");
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); } } }