3ds: Fix crash on shutdown

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit aa834e83aa262476043d09beae14b2c2fe0f8365
Author: Vencislav Atanasov <[email protected]>
Date:   Wed Mar 11 18:42:39 2026 +0200

    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

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
 
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.