From 37ecd48a40104059040e383ce2def224d8d496a6 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 3 Apr 2024 11:16:34 +0100 Subject: [PATCH] Add a message about the fact that the game crashed --- agb/src/panics_render.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agb/src/panics_render.rs b/agb/src/panics_render.rs index f1970ae5..e8edd5ca 100644 --- a/agb/src/panics_render.rs +++ b/agb/src/panics_render.rs @@ -27,7 +27,10 @@ pub fn render_backtrace(trace: &backtrace::Frames, info: &PanicInfo) -> ! { let mut trace_text_render = text::BitmapTextRender::new(&mut gfx, (location, 8).into(), 0x0000); - let _ = write!(&mut trace_text_render, "https://agbrs.dev/crash\n{trace}"); + let _ = write!( + &mut trace_text_render, + "The game crashed :(\nhttps://agbrs.dev/crash\n{trace}" + ); let mut panic_text_render = text::BitmapTextRender::new(&mut gfx, (8, location).into(), 0x0000);