[nostalgia/core/gba] Remove err from panic message if err is 0
This commit is contained in:
parent
9c8dc09996
commit
6497b40e64
@ -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);
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user