Add a sysprop for IsDebuggerPresent.

This commit is contained in:
Henrik Rydgård committed 2023-10-12 11:58:04 +02:00
1 parent f1bc547e94
commit 6dbe49775c
6 files changed
+12 -7

No files matched your search

+1 -1
View File
@@ -418,7 +418,7 @@ namespace MainWindow {
}
static void RestartApp() {
if (IsDebuggerPresent()) {
if (System_GetPropertyBool(SYSPROP_DEBUGGER_PRESENT)) {
PostMessage(MainWindow::GetHWND(), WM_USER_RESTART_EMUTHREAD, 0, 0);
} else {
g_Config.bRestartRequired = true;