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 committed 2022-12-30 12:29:23 +01:00
1 parent cee71cbfc3
commit 97fadbcecb
4 files changed
+13 -4

No files matched your search

+2 -1
View File
@@ -280,8 +280,9 @@ bool HandleFault(uintptr_t hostAddress, void *ctx) {
}
} else {
// Either bIgnoreBadMemAccess is off, or we failed recovery analysis.
// We can't ignore this memory access.
uint32_t approximatePC = currentMIPS->pc;
Core_MemoryExceptionInfo(guestAddress, approximatePC, type, infoString);
Core_MemoryExceptionInfo(guestAddress, approximatePC, type, infoString, true);
// There's a small chance we can resume from this type of crash.
g_lastCrashAddress = codePtr;