diff --git a/limine-pxe.bin b/limine-pxe.bin index d3f878b1..c1da2577 100644 Binary files a/limine-pxe.bin and b/limine-pxe.bin differ diff --git a/limine.bin b/limine.bin index bb279a04..04af2add 100644 Binary files a/limine.bin and b/limine.bin differ diff --git a/stage2.map b/stage2.map index 49b6c0c6..6aa7fcf3 100644 Binary files a/stage2.map and b/stage2.map differ diff --git a/stage2/lib/config.c b/stage2/lib/config.c index 6f35fa31..03b00f1d 100644 --- a/stage2/lib/config.c +++ b/stage2/lib/config.c @@ -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); diff --git a/test/limine.cfg b/test/limine.cfg index b52a6c0c..29dac8ee 100644 --- a/test/limine.cfg +++ b/test/limine.cfg @@ -10,7 +10,7 @@ THEME_MARGIN=64 BACKGROUND_PATH=bios://:1/boot/bg.bmp -:Legacy +:+Legacy ::Stivale Test