mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-29 03:10:28 +00:00
Win32: Properly shutdown when using File->Exit, or when g_Config.bEscapeExitsEmulator is true.
This commit is contained in:
parent
b262794a35
commit
b82e85f9fc
@ -119,7 +119,7 @@ namespace WindowsRawInput {
|
||||
}
|
||||
|
||||
if (g_Config.bEscapeExitsEmulator && raw->data.keyboard.VKey == VK_ESCAPE) {
|
||||
DestroyWindow(MainWindow::GetHWND());
|
||||
PostMessage(MainWindow::GetHWND(), WM_CLOSE, 0, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1316,7 +1316,7 @@ namespace MainWindow
|
||||
break;
|
||||
|
||||
case ID_FILE_EXIT:
|
||||
DestroyWindow(hWnd);
|
||||
PostMessage(hwndMain, WM_CLOSE, 0, 0);
|
||||
break;
|
||||
|
||||
case ID_DEBUG_RUNONLOAD:
|
||||
|
Loading…
Reference in New Issue
Block a user