mirror of
https://github.com/limine-bootloader/limine
synced 2025-01-05 20:34:33 +03:00
config: Add default expanded entries
This commit is contained in:
parent
8c4f3ecfde
commit
9b7f9e4209
BIN
limine-pxe.bin
BIN
limine-pxe.bin
Binary file not shown.
BIN
limine.bin
BIN
limine.bin
Binary file not shown.
BIN
stage2.map
BIN
stage2.map
Binary file not shown.
@ -100,11 +100,14 @@ static struct menu_entry *create_menu_tree(struct menu_entry *parent,
|
||||
|
||||
config_get_entry_name(name, i, 64);
|
||||
|
||||
strcpy(entry->name, name + current_depth);
|
||||
bool default_expanded = name[current_depth] == '+';
|
||||
|
||||
strcpy(entry->name, name + current_depth + default_expanded);
|
||||
entry->parent = parent;
|
||||
|
||||
if (is_directory(name, 64, current_depth, i)) {
|
||||
entry->sub = create_menu_tree(entry, current_depth + 1, i + 1);
|
||||
entry->expanded = default_expanded;
|
||||
} else {
|
||||
size_t entry_size;
|
||||
char *config_entry = config_get_entry(&entry_size, i);
|
||||
|
@ -10,7 +10,7 @@ THEME_MARGIN=64
|
||||
|
||||
BACKGROUND_PATH=bios://:1/boot/bg.bmp
|
||||
|
||||
:Legacy
|
||||
:+Legacy
|
||||
|
||||
::Stivale Test
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user