From 4e01eb2f802f6632a33f78203dd33daa72a4ce35 Mon Sep 17 00:00:00 2001 From: ergo720 <45463469+ergo720@users.noreply.github.com> Date: Thu, 2 Apr 2020 17:18:07 +0200 Subject: [PATCH] Display warning message when activating the all cores hack --- src/gui/WndMain.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/WndMain.cpp b/src/gui/WndMain.cpp index 7fb596435..eeb23038f 100644 --- a/src/gui/WndMain.cpp +++ b/src/gui/WndMain.cpp @@ -1265,6 +1265,13 @@ LRESULT CALLBACK WndMain::WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP break; case ID_HACKS_RUNXBOXTHREADSONALLCORES: + if (g_Settings->m_hacks.UseAllCores == false) { + int ret = MessageBox(hwnd, "Activating this hack will make the emulator more likely to crash and/or hang. \ +Please do not report issues with games while this hack is active. Are you sure you want to turn it on?", "Cxbx-Reloaded", MB_YESNO | MB_ICONWARNING | MB_APPLMODAL); + if (ret == IDNO) { + break; + } + } g_Settings->m_hacks.UseAllCores = !g_Settings->m_hacks.UseAllCores; RefreshMenus(); break;