Cleanup the Windows thread stuff to work like the other platforms. Not quite perfect yet.
This commit is contained in:
parent
7f30037e45
commit
ae19c48138
8 changed files with 130 additions and 123 deletions
|
@ -189,10 +189,7 @@ void UpdateRunLoop() {
|
|||
return;
|
||||
}
|
||||
NativeUpdate();
|
||||
|
||||
if (GetUIState() != UISTATE_EXIT) {
|
||||
NativeRender(graphicsContext);
|
||||
}
|
||||
NativeRender(graphicsContext);
|
||||
}
|
||||
|
||||
void KeepScreenAwake() {
|
||||
|
@ -268,6 +265,7 @@ reswitch:
|
|||
if (GetUIState() != UISTATE_INGAME) {
|
||||
CoreStateProcessed();
|
||||
if (GetUIState() == UISTATE_EXIT) {
|
||||
UpdateRunLoop();
|
||||
return;
|
||||
}
|
||||
Core_RunLoop(ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue