From b079cc89276ea1b02febec30a1b83d3d0f88c657 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 10 Sep 2017 22:31:09 +0200 Subject: [PATCH] Another buildfix --- menu/menu_setting.c | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 49d1555b58..e1f26c65da 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -1681,15 +1681,34 @@ void general_write_handler(void *data) case MENU_ENUM_LABEL_HELP: if (*setting->value.target.boolean) { - menu_displaylist_info_t info = {0}; + menu_displaylist_info_t info; file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0); - info.list = menu_stack; - info.type = 0; - info.directory_ptr = 0; + info.enum_idx = MENU_ENUM_LABEL_HELP; + info.need_sort = false; + info.need_refresh = false; + info.need_entries_refresh = false; + info.need_push = false; + info.need_clear = false; + info.push_builtin_cores = false; + info.download_core = false; + info.need_navigation_clear = false; + info.path[0] = '\0'; + info.path_b[0] = '\0'; + info.path_c[0] = '\0'; + info.exts[0] = '\0'; strlcpy(info.label, - msg_hash_to_str(MENU_ENUM_LABEL_HELP), sizeof(info.label)); - info.enum_idx = MENU_ENUM_LABEL_HELP; + msg_hash_to_str(MENU_ENUM_LABEL_HELP), + sizeof(info.label)); + info.type = 0; + info.type_default = 0; + info.flags = 0; + info.label_hash = 0; + info.directory_ptr = 0; + info.list = menu_stack; + info.menu_list = NULL; + info.setting = NULL; + if (menu_displaylist_ctl(DISPLAYLIST_GENERIC, &info)) menu_displaylist_process(&info);