check for allowAdminPrivilege during the signature check

This commit is contained in:
wutno 2019-01-06 13:03:41 -05:00 committed by GitHub
parent a79567a58f
commit 80dcbf436e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1991,9 +1991,11 @@ void WndMain::OpenXbe(const char *x_filename)
return;
}
if (!m_Xbe->CheckXbeSignature())
if (!m_Xbe->CheckXbeSignature() && !g_Settings->m_core.allowAdminPrivilege)
{
int ret = MessageBox(m_hwnd, "XBE signature check failed! It's possible that hackers have injected malicious code into this game.\n\nAre you sure you wish to continue?", "Cxbx-Reloaded", MB_ICONEXCLAMATION | MB_YESNO);
int ret = MessageBox(m_hwnd, "XBE signature check failed!\n"
"\nThis is dangerous, as maliciously modified Xbox titles could take control of your system.\n"
"\nAre you sure you want to continue?", "Cxbx-Reloaded", MB_ICONEXCLAMATION | MB_YESNO);
if (ret != IDYES)
return;
}