mirror of https://github.com/mgba-emu/mgba.git
Core: Reroot timing list when (de)scheduling
This commit is contained in:
parent
4e07d4cba0
commit
77d6bda524
1
CHANGES
1
CHANGES
|
@ -128,6 +128,7 @@ Bugfixes:
|
||||||
- Qt: Grab focus when game starts (fixes mgba.io/i/804)
|
- Qt: Grab focus when game starts (fixes mgba.io/i/804)
|
||||||
- Core: Remember to deinit proxy ring FIFO
|
- Core: Remember to deinit proxy ring FIFO
|
||||||
- GBA Savedata: Fix EEPROM writing codepath when savetype is not EEPROM
|
- GBA Savedata: Fix EEPROM writing codepath when savetype is not EEPROM
|
||||||
|
- Core: Reroot timing list when (de)scheduling
|
||||||
Misc:
|
Misc:
|
||||||
- mGUI: Add SGB border configuration option
|
- mGUI: Add SGB border configuration option
|
||||||
- mGUI: Add support for different settings types
|
- mGUI: Add support for different settings types
|
||||||
|
|
|
@ -28,6 +28,10 @@ void mTimingSchedule(struct mTiming* timing, struct mTimingEvent* event, int32_t
|
||||||
if (nextEvent < *timing->nextEvent) {
|
if (nextEvent < *timing->nextEvent) {
|
||||||
*timing->nextEvent = nextEvent;
|
*timing->nextEvent = nextEvent;
|
||||||
}
|
}
|
||||||
|
if (timing->reroot) {
|
||||||
|
timing->root = timing->reroot;
|
||||||
|
timing->reroot = NULL;
|
||||||
|
}
|
||||||
struct mTimingEvent** previous = &timing->root;
|
struct mTimingEvent** previous = &timing->root;
|
||||||
struct mTimingEvent* next = timing->root;
|
struct mTimingEvent* next = timing->root;
|
||||||
unsigned priority = event->priority;
|
unsigned priority = event->priority;
|
||||||
|
@ -44,6 +48,10 @@ void mTimingSchedule(struct mTiming* timing, struct mTimingEvent* event, int32_t
|
||||||
}
|
}
|
||||||
|
|
||||||
void mTimingDeschedule(struct mTiming* timing, struct mTimingEvent* event) {
|
void mTimingDeschedule(struct mTiming* timing, struct mTimingEvent* event) {
|
||||||
|
if (timing->reroot) {
|
||||||
|
timing->root = timing->reroot;
|
||||||
|
timing->reroot = NULL;
|
||||||
|
}
|
||||||
struct mTimingEvent** previous = &timing->root;
|
struct mTimingEvent** previous = &timing->root;
|
||||||
struct mTimingEvent* next = timing->root;
|
struct mTimingEvent* next = timing->root;
|
||||||
while (next) {
|
while (next) {
|
||||||
|
|
Loading…
Reference in New Issue