mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
Add DISPLAYLIST_SETTING_ENUM
This commit is contained in:
parent
2071f8eaaf
commit
ef808b6591
@ -3533,6 +3533,19 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
||||
|
||||
}
|
||||
return true;
|
||||
case DISPLAYLIST_SETTING_ENUM:
|
||||
{
|
||||
menu_displaylist_ctx_parse_entry_t *entry =
|
||||
(menu_displaylist_ctx_parse_entry_t*)data;
|
||||
|
||||
if (menu_displaylist_parse_settings_enum(entry->data,
|
||||
entry->info,
|
||||
entry->enum_idx,
|
||||
entry->parse_type,
|
||||
entry->add_empty_entry) == -1)
|
||||
goto error;
|
||||
}
|
||||
return true;
|
||||
case DISPLAYLIST_SETTINGS:
|
||||
ret = menu_displaylist_parse_settings(menu, info,
|
||||
info->label, PARSE_NONE, true);
|
||||
|
@ -22,6 +22,8 @@
|
||||
#include <retro_common_api.h>
|
||||
#include <lists/file_list.h>
|
||||
|
||||
#include "menu_hash.h"
|
||||
|
||||
#ifndef COLLECTION_SIZE
|
||||
#define COLLECTION_SIZE 99999
|
||||
#endif
|
||||
@ -51,6 +53,7 @@ enum menu_displaylist_ctl_state
|
||||
DISPLAYLIST_MAIN_MENU,
|
||||
DISPLAYLIST_GENERIC,
|
||||
DISPLAYLIST_SETTING,
|
||||
DISPLAYLIST_SETTING_ENUM,
|
||||
DISPLAYLIST_SETTINGS,
|
||||
DISPLAYLIST_SETTINGS_ALL,
|
||||
DISPLAYLIST_HORIZONTAL,
|
||||
@ -146,6 +149,7 @@ typedef struct menu_displaylist_ctx_parse_entry
|
||||
void *data;
|
||||
menu_displaylist_info_t *info;
|
||||
const char *info_label;
|
||||
enum menu_hash_enums enum_idx;
|
||||
enum menu_displaylist_parse_type parse_type;
|
||||
bool add_empty_entry;
|
||||
} menu_displaylist_ctx_parse_entry_t;
|
||||
|
Loading…
Reference in New Issue
Block a user