mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Windows: Fix shutdown order (stop the main thread before the window gets destroyed)
This commit is contained in:
parent
e48a1599d4
commit
a8985d8dda
@ -968,6 +968,7 @@ namespace MainWindow
|
||||
break;
|
||||
|
||||
case WM_CLOSE:
|
||||
MainThread_Stop();
|
||||
InputDevice::StopPolling();
|
||||
WindowsRawInput::Shutdown();
|
||||
return DefWindowProc(hWnd,message,wParam,lParam);
|
||||
@ -976,8 +977,9 @@ namespace MainWindow
|
||||
KillTimer(hWnd, TIMER_CURSORUPDATE);
|
||||
KillTimer(hWnd, TIMER_CURSORMOVEUPDATE);
|
||||
KillTimer(hWnd, TIMER_WHEELRELEASE);
|
||||
// Main window is gone, this tells the message loop to exit.
|
||||
PostQuitMessage(0);
|
||||
break;
|
||||
return 0;
|
||||
|
||||
case WM_USER + 1:
|
||||
NotifyDebuggerMapLoaded();
|
||||
|
@ -776,8 +776,6 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
||||
}
|
||||
}
|
||||
|
||||
MainThread_Stop();
|
||||
|
||||
VFSShutdown();
|
||||
|
||||
MainWindow::DestroyDebugWindows();
|
||||
|
Loading…
x
Reference in New Issue
Block a user