all repos — mgba @ 764b3fce10c6efe989c5107f249e880cebef26d8

mGBA Game Boy Advance Emulator

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
commit

764b3fce10c6efe989c5107f249e880cebef26d8

parent

9c8e5fc2228f32e5b986bf9f121de8ab58a35ca1

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/gba/gba-sio.csrc/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); } } }