Default to graphical mode for the menu
This commit is contained in:
parent
d3bd628243
commit
6c0ba4104f
BIN
limine.bin
BIN
limine.bin
Binary file not shown.
@ -19,10 +19,9 @@ char *menu(void) {
|
||||
|
||||
char buf[16];
|
||||
|
||||
if (config_get_value(buf, 0, 16, "GRAPHICS")) {
|
||||
if (!strcmp(buf, "on")) {
|
||||
term_vbe();
|
||||
}
|
||||
// If there is no TEXTMODE config key or the value is not "on", enable graphics
|
||||
if (config_get_value(buf, 0, 16, "TEXTMODE") == NULL || strcmp(buf, "on")) {
|
||||
term_vbe();
|
||||
}
|
||||
|
||||
int timeout;
|
||||
@ -91,7 +90,6 @@ refresh:
|
||||
}
|
||||
}
|
||||
clear(true);
|
||||
term_textmode();
|
||||
return cmdline;
|
||||
case 'e':
|
||||
config_set_entry(selected_entry);
|
||||
@ -104,7 +102,6 @@ refresh:
|
||||
print("\n\n> ");
|
||||
gets(cmdline, cmdline, CMDLINE_MAX);
|
||||
clear(true);
|
||||
term_textmode();
|
||||
return cmdline;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user