From 0c517434f30c50fc928f1f856d013278d2694f29 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Mar 2016 07:29:17 +0100 Subject: [PATCH] Add DISPLAYLIST_SETTING --- menu/menu_displaylist.c | 18 ++++++++++++++++++ menu/menu_displaylist.h | 1 + 2 files changed, 19 insertions(+) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 6af74f11ff..48ce7635b3 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -3128,6 +3128,24 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data) info->label, info->type, info->directory_ptr, 0); menu->push_help_screen = false; break; + case DISPLAYLIST_SETTING: + { + menu_displaylist_ctx_parse_entry_t *entry = + (menu_displaylist_ctx_parse_entry_t*)data; + + if (!entry) + return false; + + if (menu_displaylist_parse_settings(entry->data, + entry->info, + entry->info_label, + entry->parse_type, + entry->add_empty_entry) == -1) + return false; + + return true; + } + break; case DISPLAYLIST_SETTINGS: ret = menu_displaylist_parse_settings(menu, info, info->label, PARSE_NONE, true); diff --git a/menu/menu_displaylist.h b/menu/menu_displaylist.h index 9e6e1ff64a..bdb9abd54e 100644 --- a/menu/menu_displaylist.h +++ b/menu/menu_displaylist.h @@ -52,6 +52,7 @@ enum menu_displaylist_ctl_state DISPLAYLIST_HELP_SCREEN_LIST, DISPLAYLIST_MAIN_MENU, DISPLAYLIST_GENERIC, + DISPLAYLIST_SETTING, DISPLAYLIST_SETTINGS, DISPLAYLIST_SETTINGS_ALL, DISPLAYLIST_HORIZONTAL,