mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
(menu_displaylist.c) Turn this into enum with name
This commit is contained in:
parent
61faa0a04b
commit
7de6a0f005
@ -1775,8 +1775,11 @@ static int deferred_push_video_shader_parameters_common(
|
||||
}
|
||||
#endif
|
||||
|
||||
int menu_displaylist_parse_settings(void *data, menu_displaylist_info_t *info,
|
||||
const char *info_label, unsigned parse_type, bool add_empty_entry)
|
||||
int menu_displaylist_parse_settings(void *data,
|
||||
menu_displaylist_info_t *info,
|
||||
const char *info_label,
|
||||
enum menu_displaylist_parse_type parse_type,
|
||||
bool add_empty_entry)
|
||||
{
|
||||
enum setting_type precond;
|
||||
size_t count = 0;
|
||||
@ -1784,7 +1787,6 @@ int menu_displaylist_parse_settings(void *data, menu_displaylist_info_t *info,
|
||||
rarch_setting_t *setting = menu_setting_find(info_label);
|
||||
uint64_t flags = menu_setting_get_flags(setting);
|
||||
|
||||
|
||||
if (!setting)
|
||||
return -1;
|
||||
|
||||
|
@ -30,7 +30,7 @@ extern "C" {
|
||||
#define COLLECTION_SIZE 99999
|
||||
#endif
|
||||
|
||||
enum
|
||||
enum menu_displaylist_parse_type
|
||||
{
|
||||
PARSE_NONE = (1 << 0),
|
||||
PARSE_GROUP = (1 << 1),
|
||||
@ -41,8 +41,7 @@ enum
|
||||
PARSE_ONLY_FLOAT = (1 << 6),
|
||||
PARSE_ONLY_BIND = (1 << 7),
|
||||
PARSE_ONLY_GROUP = (1 << 8),
|
||||
PARSE_ONLY_SUB_GROUP = (1 << 9),
|
||||
PARSE_SUB_GROUP = (1 << 10)
|
||||
PARSE_SUB_GROUP = (1 << 9)
|
||||
};
|
||||
|
||||
enum menu_displaylist_ctl_state
|
||||
@ -145,7 +144,7 @@ typedef struct menu_displaylist_ctx_entry
|
||||
bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data);
|
||||
|
||||
int menu_displaylist_parse_settings(void *data, menu_displaylist_info_t *info,
|
||||
const char *info_label, unsigned parse_type, bool add_empty_entry);
|
||||
const char *info_label, enum menu_displaylist_parse_type parse_type, bool add_empty_entry);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user