Also print exception code and address

This commit is contained in:
ergo720 2021-04-29 12:56:37 +02:00
parent a95636afcd
commit 2d10c1ffe2
1 changed files with 3 additions and 2 deletions

View File

@ -196,10 +196,11 @@ void EmuExceptionNonBreakpointUnhandledShow(LPEXCEPTION_POINTERS e)
std::fflush(stdout);
if (PopupFatalEx(nullptr, PopupButtons::OkCancel, PopupReturn::Ok,
" The running xbe has encountered an unrecoverable error.\n"
" 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.") == PopupReturn::Ok)
" Press \"Cancel\" to debug.",
e->ExceptionRecord->ExceptionCode, e->ContextRecord->Eip) == PopupReturn::Ok)
{
EmuExceptionExitProcess();
}