mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Cleanup shutdown on Windows to avoid races.
Was still getting crashes sometimes.
This commit is contained in:
1 parent
85c013c5b6
commit
21f522746f
5 files changed
+64
-43
No files matched your search
@@ -130,11 +130,12 @@ unsigned int WINAPI TheThread(void *)
|
||||
|
||||
while (globalUIState != UISTATE_EXIT)
|
||||
{
|
||||
Core_Run();
|
||||
|
||||
// We're here again, so the game quit. Restart Core_Run() which controls the UI.
|
||||
// This way they can load a new game.
|
||||
Core_UpdateState(CORE_RUNNING);
|
||||
if (!Core_IsActive())
|
||||
UpdateUIState(UISTATE_MENU);
|
||||
|
||||
Core_Run();
|
||||
}
|
||||
|
||||
shutdown:
|
||||
|
||||
Reference in new issue
Block a user