diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 8a0cda550a..fdd6a8d355 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -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; diff --git a/menu/menu_displaylist.h b/menu/menu_displaylist.h index d44fc7cec5..d1eecf00a4 100644 --- a/menu/menu_displaylist.h +++ b/menu/menu_displaylist.h @@ -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 }