Show bluescreen properly on memory errors that we failed to ignore.

Previously we just wouldn't draw it but still would be in the error
state.
This commit is contained in:
Henrik Rydgård
2022-12-30 12:29:23 +01:00
parent cee71cbfc3
commit 97fadbcecb
4 changed files with 13 additions and 4 deletions
+7
View File
@@ -1199,6 +1199,9 @@ static void DrawCrashDump(UIContext *ctx) {
ctx->PushScissor(Bounds(x, y, columnWidth, height));
INFO_LOG(SYSTEM, "DrawCrashDump (%d %d %d %d)", x, y, columnWidth, height);
snprintf(statbuf, sizeof(statbuf), R"(%s
%s (%s)
%s (%s)
@@ -1565,6 +1568,10 @@ void EmuScreen::renderUI() {
const ExceptionInfo &info = Core_GetExceptionInfo();
if (info.type != ExceptionType::NONE) {
DrawCrashDump(ctx);
} else {
// We're somehow in ERROR or STEPPING without a crash dump. This case is what lead
// to the bare "Resume" and "Reset" buttons without a crash dump before, in cases
// where we were unable to ignore memory errors.
}
}