mirror of https://github.com/mgba-emu/mgba.git
Core: Scheduling includes re-rooted if no root
This commit is contained in:
parent
6c664c7efe
commit
11880f5760
|
@ -58,6 +58,9 @@ void mTimingDeschedule(struct mTiming* timing, struct mTimingEvent* event) {
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue