From aa834e83aa262476043d09beae14b2c2fe0f8365 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Wed, 11 Mar 2026 18:42:39 +0200 Subject: [PATCH] 3ds: Fix crash on shutdown It is required to call gfxExit() before exiting the app if gfxInit() was previously called. Otherwise, the GSP thread continues to run after the stack is invalidated. The missing code is already in lcd_shutdown(), but it was never called because HAVE_LCD_SHUTDOWN was not defined for the ctru target. Change-Id: I8999df6372cd593c5b52478028ad7421b23d5f92 --- firmware/export/config/ctru.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/export/config/ctru.h b/firmware/export/config/ctru.h index 0edaf145a5..da9c2b3fb3 100644 --- a/firmware/export/config/ctru.h +++ b/firmware/export/config/ctru.h @@ -22,6 +22,9 @@ /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR +/* Define this if the LCD can shut down */ +#define HAVE_LCD_SHUTDOWN + /* define this if you want album art for this target */ #define HAVE_ALBUMART