From 6497b40e645213a8f14cbb2a43b5ce8aca822479 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 15 Dec 2020 23:59:13 -0600 Subject: [PATCH] [nostalgia/core/gba] Remove err from panic message if err is 0 --- src/nostalgia/core/gba/panic.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nostalgia/core/gba/panic.cpp b/src/nostalgia/core/gba/panic.cpp index af4268a9..d5cd8ef8 100644 --- a/src/nostalgia/core/gba/panic.cpp +++ b/src/nostalgia/core/gba/panic.cpp @@ -30,7 +30,9 @@ void panic(const char*, int, const char *msg, ox::Error err) { puts(nullptr, 32 + 1, 1, "SADNESS..."); puts(nullptr, 32 + 1, 4, "UNEXPECTED STATE:"); puts(nullptr, 32 + 2, 6, msg); - puts(nullptr, 32 + 2, 8, serr.c_str()); + if (err) { + puts(nullptr, 32 + 2, 8, serr.c_str()); + } puts(nullptr, 32 + 1, 15, "PLEASE RESTART THE SYSTEM"); // disable all interrupt handling and IntrWait on no interrupts REG_IE = 0;