From 5d496baee4e70a705bad3685bb7a67c73a75f785 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Tue, 24 Feb 2026 23:01:29 +0100 Subject: [PATCH] Make JUT showAssert_f_va just log and exit Normally it tries to draw the error on screen, but the wait on vblank just infinite loops for us. --- src/JSystem/JUtility/JUTAssert.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/JSystem/JUtility/JUTAssert.cpp b/src/JSystem/JUtility/JUTAssert.cpp index bf26d0ae99..7d230b942f 100644 --- a/src/JSystem/JUtility/JUTAssert.cpp +++ b/src/JSystem/JUtility/JUTAssert.cpp @@ -90,6 +90,10 @@ void showAssert_f_va(u32 device, const char* file, int line, const char* msg, va sMessageLife = -1; vsnprintf(sMessageString, 255, msg, args); +#if TARGET_PC + OSReport_Error("Failed assertion: %s:%d\n", file, line); + OSReport_Error("%s\n", sMessageString); +#else if (device & 2) { OSReport("Failed assertion: %s:%d\n", file, line); OSReport("%s\n", sMessageString); @@ -121,6 +125,7 @@ void showAssert_f_va(u32 device, const char* file, int line, const char* msg, va } } } +#endif } void showAssert_f(u32 device, const char* file, int line, const char* msg, ...) {