Qt: Ensure system is shut down before closing

Fixes crash on shutdown on Mac.
This commit is contained in:
Stenzek
2023-02-05 13:43:00 +10:00
parent 1371dcfa4a
commit 0ef24398f8
9 changed files with 50 additions and 40 deletions

View File

@ -399,7 +399,8 @@ LRESULT CALLBACK Win32NoGUIPlatform::WndProc(HWND hwnd, UINT msg, WPARAM wParam,
case WM_CLOSE:
case WM_QUIT:
{
Host::RunOnCPUThread([]() { Host::RequestExit(g_settings.save_state_on_exit); });
Host::RunOnCPUThread([]() { Host::RequestExit(false); });
return 0;
}
break;