gui: Warn users of modified XBE signatures

This commit is contained in:
wutno 2019-01-06 11:18:00 -05:00 committed by GitHub
parent 9eae01eedf
commit a79567a58f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -1990,7 +1990,14 @@ void WndMain::OpenXbe(const char *x_filename)
return;
}
if (!m_Xbe->CheckXbeSignature())
{
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);
if (ret != IDYES)
return;
}
// save this xbe to the list of recent xbe files
if(m_XbeFilename[0] != '\0') {
bool found = false;