all repos — mgba @ 4e2a27b42620369fbdb95cdcbacba7dc5876b058

mGBA Game Boy Advance Emulator

GBA SIO: Fix child bit in lockstep driver
Jeffrey Pfau jeffrey@endrift.com
Sun, 01 Mar 2015 05:39:13 -0800
commit

4e2a27b42620369fbdb95cdcbacba7dc5876b058

parent

f775af67f352e08d55891c1031b0f3a75285da4f

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

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

@@ -97,6 +97,7 @@ ++node->p->loaded;

node->d.p->rcnt |= 3; if (node->id) { node->d.p->rcnt |= 4; + node->d.p->multiplayerControl.slave = 1; } MutexUnlock(&node->p->mutex); return true;

@@ -124,7 +125,7 @@ MutexUnlock(&node->p->mutex);

} } value &= 0xFF03; - value |= driver->p->siocnt & 0x0078; + value |= driver->p->siocnt & 0x007C; } return value; }