:: commit 633d49b720d01d73c2a8b96e6a72d377336a8f5e

mintsuki <mintsuki@protonmail.com> — 2020-04-22 15:47

parents: bc7f7277cc

Fix issue where cmdline is not loaded

diff --git a/src/main.c b/src/main.c
index b703986a..837dd587 100644
--- a/src/main.c
+++ b/src/main.c
@@ -56,6 +56,7 @@ refresh:
             case '\r':
                 config_set_entry(selected_entry);
                 text_enable_cursor();
+                config_get_value(cmdline, 0, 128, "KERNEL_CMDLINE");
                 text_clear();
                 return;
             case 'e':
@@ -132,6 +133,8 @@ void main(int boot_drive) {
         panic("Invalid config entry.");
     }
 
+    config_get_value(cmdline, 0, 128, "KERNEL_CMDLINE");
+
 got_entry:
     if (!config_get_value(buf, 0, 32, "KERNEL_DRIVE")) {
         print("KERNEL_DRIVE not specified, using boot drive (%x)", boot_drive);
tab: 248 wrap: offon