Merge pull request #2213 from ergo720/fatal_msg

Reworded fatal error message popup
This commit is contained in:
Luke Usher 2021-04-30 08:02:55 +01:00 committed by GitHub
commit 7a6983478f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -191,15 +191,12 @@ void EmuExceptionNonBreakpointUnhandledShow(LPEXCEPTION_POINTERS e)
{
EmuExceptionPrintDebugInformation(e, /*IsBreakpointException=*/false);
char buffer[256];
sprintf(buffer,
"Received Exception Code 0x%.08X @ EIP := %s\n"
if (PopupFatalEx(nullptr, PopupButtons::OkCancel, PopupReturn::Ok,
" The running xbe has encountered an unhandled exception (Code := 0x%.8X) at address 0x%.08X.\n"
"\n"
" Press \"OK\" to terminate emulation.\n"
" Press \"Cancel\" to debug.",
e->ExceptionRecord->ExceptionCode, EIPToString(e->ContextRecord->Eip).c_str());
if (PopupFatalEx(nullptr, PopupButtons::OkCancel, PopupReturn::Ok, buffer) == PopupReturn::Ok)
e->ExceptionRecord->ExceptionCode, e->ContextRecord->Eip) == PopupReturn::Ok)
{
EmuExceptionExitProcess();
}