mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 19:23:47 +01:00
Correct some window-closing code on Windows.
This commit is contained in:
1 parent
581e319518
commit
6c55a37a7e
4 files changed
+35
-23
No files matched your search
@@ -443,7 +443,7 @@ namespace MainWindow {
|
||||
PostMessage(MainWindow::GetHWND(), WM_USER_RESTART_EMUTHREAD, 0, 0);
|
||||
} else {
|
||||
g_Config.bRestartRequired = true;
|
||||
PostMessage(MainWindow::GetHWND(), WM_CLOSE, 0, 0);
|
||||
DestroyWindow(MainWindow::GetHWND());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -755,7 +755,9 @@ namespace MainWindow {
|
||||
case ID_OPTIONS_FRAMESKIPTYPE_PRCNT: setFrameSkippingType(FRAMESKIPTYPE_PRCNT); break;
|
||||
|
||||
case ID_FILE_EXIT:
|
||||
PostMessage(hWnd, WM_CLOSE, 0, 0);
|
||||
if (MainWindow::ConfirmExit(hWnd)) {
|
||||
DestroyWindow(hWnd);
|
||||
}
|
||||
break;
|
||||
|
||||
case ID_DEBUG_BREAKONLOAD:
|
||||
|
||||
Reference in new issue
Block a user