mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 07:20:31 +02:00
Be consistent about how we read and update the UI state variable
This commit is contained in:
1 parent
b5435260b0
commit
6ec74ef99e
10 files changed
+30
-24
No files matched your search
@@ -58,7 +58,7 @@ void EmuThread_Stop()
|
||||
return;
|
||||
}
|
||||
|
||||
globalUIState = UISTATE_EXIT;
|
||||
UpdateUIState(UISTATE_EXIT);
|
||||
Core_Stop();
|
||||
Core_WaitInactive(800);
|
||||
if (WAIT_TIMEOUT == WaitForSingleObject(emuThread, 800))
|
||||
@@ -132,7 +132,7 @@ unsigned int WINAPI TheThread(void *)
|
||||
|
||||
Core_EnableStepping(FALSE);
|
||||
|
||||
while (globalUIState != UISTATE_EXIT)
|
||||
while (GetUIState() != UISTATE_EXIT)
|
||||
{
|
||||
// We're here again, so the game quit. Restart Core_Run() which controls the UI.
|
||||
// This way they can load a new game.
|
||||
|
||||
Reference in new issue
Block a user