Add DISPLAYLIST_SETTING

This commit is contained in:
twinaphex 2016-03-04 07:29:17 +01:00
parent 9fdbde1b4c
commit 0c517434f3
2 changed files with 19 additions and 0 deletions

View File

@ -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);

View File

@ -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,