:: commit cc8ff908655582c04c1b7e9fe3d6a316e8061e72

mintsuki <mintsuki@protonmail.com> — 2022-10-05 12:21

parents: 6cbb9c4577

menu: Use fallback terminal instead of panicking on gterm_init() fail

diff --git a/common/menu.c b/common/menu.c
index 5df24f43..17ce0ae9 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -568,7 +568,7 @@ static void menu_init_term(void) {
 #if defined (BIOS)
             vga_textmode_init(true);
 #elif defined (UEFI)
-            panic(true, "menu: Failed to initialise terminal");
+            term_fallback();
 #endif
         }
     } else {
@@ -857,7 +857,7 @@ timeout_aborted:
 #if defined (BIOS)
                             vga_textmode_init(true);
 #elif defined (UEFI)
-                            panic(true, "menu: Failed to initialise terminal");
+                            term_fallback();
 #endif
                         }
                     } else {
tab: 248 wrap: offon