all repos — mgba @ 9273a4ca724f82b41a6d5da74e2dc002fc4d1858

mGBA Game Boy Advance Emulator

GBA SIO: Fix RCNT mode selection
Jeffrey Pfau jeffrey@endrift.com
Mon, 02 Mar 2015 01:20:12 -0800
commit

9273a4ca724f82b41a6d5da74e2dc002fc4d1858

parent

dcd2e3a64ffda50e97371aa8fc16776d85f8032f

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

jump to
M src/gba/sio.csrc/gba/sio.c

@@ -36,11 +36,11 @@ sio->mode = (enum GBASIOMode) (mode & 0x3);

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