Merge pull request #1856 from ergo720/hack_warn

Display warning message when activating the all cores hack
This commit is contained in:
PatrickvL 2020-04-02 17:43:42 +02:00 committed by GitHub
commit 79ee9ecd21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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;