all repos — mgba @ 618092a5f6b5ed1501e361b4c7c2f390f4967d66

mGBA Game Boy Advance Emulator

GBA SIO: Fix lockstep barrier
Jeffrey Pfau jeffrey@endrift.com
Sun, 01 Mar 2015 15:53:09 -0800
commit

618092a5f6b5ed1501e361b4c7c2f390f4967d66

parent

4e2a27b42620369fbdb95cdcbacba7dc5876b058

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

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

@@ -158,9 +158,9 @@ node->p->multiRecv[i] = 0xFFFF;

} } } + node->p->waiting = 0; ConditionWake(&node->p->barrier); } - --node->p->waiting; if (node->state == LOCKSTEP_FINISHED) { node->d.p->p->memory.io[REG_SIOMULTI0 >> 1] = node->p->multiRecv[0]; node->d.p->p->memory.io[REG_SIOMULTI1 >> 1] = node->p->multiRecv[1];