all repos — mgba @ 11880f5760451857b0e74dbc92975791d2ad0327

mGBA Game Boy Advance Emulator

Core: Scheduling includes re-rooted if no root
Vicki Pfau vi@endrift.com
Sat, 01 Sep 2018 16:19:40 -0700
commit

11880f5760451857b0e74dbc92975791d2ad0327

parent

6c664c7efeb5fa3644f9df9238032267a2fdc81e

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

jump to
M src/core/timing.csrc/core/timing.c

@@ -58,6 +58,9 @@ }

bool mTimingIsScheduled(const struct mTiming* timing, const struct mTimingEvent* event) { const struct mTimingEvent* next = timing->root; + if (!next) { + next = timing->reroot; + } while (next) { if (next == event) { return true;