Be consistent about how we read and update the UI state variable

This commit is contained in:
Henrik Rydgard committed 2014-06-22 09:57:01 +02:00
1 parent b5435260b0
commit 6ec74ef99e
10 files changed
+30 -24

No files matched your search

+2 -2
View File
@@ -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.