Remove the "restart emuthread" facility that isn't really working (and won't be compatible with the next refactorings)

This commit is contained in:
Henrik Rydgård committed 2026-07-20 12:02:07 +02:00
1 parent 29836ea74e
commit f022328521
4 files changed
+5 -22

No files matched your search

-9
View File
@@ -1097,15 +1097,6 @@ namespace MainWindow {
UpdateWindowTitle();
break;
case WM_USER_RESTART_EMUTHREAD:
NativeSetRestarting();
g_InputManager.StopPolling();
MainThread_Stop();
UpdateUIState(UISTATE_MENU);
MainThread_Start(0, nullptr);
g_InputManager.BeginPolling();
break;
case WM_USER_SWITCHUMD_UPDATED:
UpdateSwitchUMD();
break;
-1
View File
@@ -17,7 +17,6 @@ namespace MainWindow
WM_USER_UPDATE_UI = WM_USER + 101,
WM_USER_WINDOW_TITLE_CHANGED = WM_USER + 103,
WM_USER_APPLY_FULLSCREEN = WM_USER + 105,
WM_USER_RESTART_EMUTHREAD = WM_USER + 106,
WM_USER_SWITCHUMD_UPDATED = WM_USER + 107,
WM_USER_RUN_CALLBACK = WM_USER + 108,
WM_USER_DESTROY = WM_USER + 109,
+2 -6
View File
@@ -446,12 +446,8 @@ namespace MainWindow {
}
static void RestartApp() {
if (System_GetPropertyBool(SYSPROP_DEBUGGER_PRESENT)) {
PostMessage(MainWindow::GetHWND(), WM_USER_RESTART_EMUTHREAD, 0, 0);
} else {
g_Config.bRestartRequired = true;
PostMessage(MainWindow::GetHWND(), WM_USER_DESTROY, 0, 0);
}
g_Config.bRestartRequired = true;
PostMessage(MainWindow::GetHWND(), WM_USER_DESTROY, 0, 0);
}
void MainWindowMenu_Process(HWND hWnd, WPARAM wParam) {
+3 -6
View File
@@ -658,14 +658,11 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string
case SystemRequestType::RESTART_APP:
{
g_restartArgs = param1;
if (!g_restartArgs.empty())
if (!g_restartArgs.empty()) {
AddDebugRestartArgs();
if (false) { // This doesn't really work anymore: System_GetPropertyBool(SYSPROP_DEBUGGER_PRESENT)) {
PostMessage(MainWindow::GetHWND(), MainWindow::WM_USER_RESTART_EMUTHREAD, 0, 0);
} else {
g_Config.bRestartRequired = true;
PostMessage(MainWindow::GetHWND(), MainWindow::WM_USER_DESTROY, 0, 0);
}
g_Config.bRestartRequired = true;
PostMessage(MainWindow::GetHWND(), MainWindow::WM_USER_DESTROY, 0, 0);
return true;
}
case SystemRequestType::COPY_TO_CLIPBOARD: