search for: menu_idx

Displaying 1 result from an estimated 1 matches for "menu_idx".

2010 Jul 14
2
[PATCH] gfxboot: add include and menu include support
...ing config file\n"); if(argc > 2) show_message(argv[2]); @@ -313,16 +314,24 @@ void chop_line(char *s) // return: // 0: ok, 1: error // -int read_config_file(void) +int read_config_file(const char *filename) { FILE *f; char *s, *t, buf[MAX_CONFIG_LINE_LEN]; - unsigned u, menu_idx = 0, label_size = 0, append_size = 0; - menu_t *menu_ptr = NULL, **menu_next = &menu; + unsigned u, top_level = 0; - menu_default = calloc(1, sizeof *menu_default); + if(!strcmp(filename, "~")) { + top_level = 1; + filename = syslinux_config_file(); + gfx_menu.entries =...