From 2f580841346c932cb1fe61d3fe0192bf8615c991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 2 Mar 2025 13:51:17 +0100 Subject: [PATCH] Crash screen: Add more suggestions --- UI/DebugOverlay.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/UI/DebugOverlay.cpp b/UI/DebugOverlay.cpp index d2e0e419b5..a7ea983672 100644 --- a/UI/DebugOverlay.cpp +++ b/UI/DebugOverlay.cpp @@ -3,6 +3,7 @@ #include "Common/System/System.h" #include "Common/Data/Text/I18n.h" #include "Common/CPUDetect.h" +#include "Common/StringUtils.h" #include "Core/MIPS/MIPS.h" #include "Core/HW/Display.h" #include "Core/FrameTiming.h" @@ -402,12 +403,19 @@ Invalid / Unknown (%d) ctx->PopScissor(); - // Draw some additional stuff to the right. + // Draw some additional stuff to the right, explaining why the background is purple, if it is. + // Should try to be in sync with Reporting::IsSupported(). std::string tips; if (CheatsInEffect()) { tips += "* Turn off cheats.\n"; } + if (HLEPlugins::HasEnabled()) { + tips += "* Turn off plugins.\n"; + } + if (g_Config.uJitDisableFlags) { + tips += StringFromFormat("* Don't use JitDisableFlags: %08x\n", g_Config.uJitDisableFlags); + } if (GetLockedCPUSpeedMhz()) { tips += "* Set CPU clock to default (0)\n"; } @@ -416,6 +424,9 @@ Invalid / Unknown (%d) } else if (!isoOK) { // TODO: Should check that it actually is an ISO and not a homebrew tips += "* Verify and possibly re-dump your ISO\n (CRC not recognized)\n"; } + if (g_paramSFO.GetValueString("DISC_VERSION").empty()) { + tips += "\n(DISC_VERSION is empty)\n"; + } if (!tips.empty()) { tips = "Things to try:\n" + tips; }