mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 12:39:54 +00:00
Get rid of some typedefs
This commit is contained in:
parent
4e883c4568
commit
6687920c1d
@ -304,22 +304,6 @@ typedef struct menu_displaylist_info
|
||||
bool need_navigation_clear;
|
||||
} menu_displaylist_info_t;
|
||||
|
||||
typedef struct menu_displaylist_ctx_parse_entry
|
||||
{
|
||||
const char *info_label;
|
||||
void *data;
|
||||
menu_displaylist_info_t *info;
|
||||
enum msg_hash_enums enum_idx;
|
||||
enum menu_displaylist_parse_type parse_type;
|
||||
bool add_empty_entry;
|
||||
} menu_displaylist_ctx_parse_entry_t;
|
||||
|
||||
typedef struct menu_displaylist_ctx_entry
|
||||
{
|
||||
file_list_t *stack;
|
||||
file_list_t *list;
|
||||
} menu_displaylist_ctx_entry_t;
|
||||
|
||||
#define MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM(list, label, parse_type, add_empty_entry) menu_displaylist_parse_settings_enum(list, parse_type, add_empty_entry, menu_setting_find_enum(label), label, true)
|
||||
|
||||
#define MENU_DISPLAYLIST_PARSE_SETTINGS(list, label, parse_type, add_empty_entry, entry_type) menu_displaylist_parse_settings_enum(list, parse_type, add_empty_entry, menu_setting_find(label), entry_type, false)
|
||||
|
19
retroarch.c
19
retroarch.c
@ -2325,7 +2325,8 @@ static bool menu_driver_displaylist_push_internal(
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool menu_driver_displaylist_push(menu_displaylist_ctx_entry_t *entry)
|
||||
static bool menu_driver_displaylist_push(
|
||||
file_list_t *entry_list, file_list_t *entry_stack)
|
||||
{
|
||||
menu_displaylist_info_t info;
|
||||
const char *path = NULL;
|
||||
@ -2347,8 +2348,8 @@ static bool menu_driver_displaylist_push(menu_displaylist_ctx_entry_t *entry)
|
||||
if (cbs)
|
||||
enum_idx = cbs->enum_idx;
|
||||
|
||||
info.list = entry->list;
|
||||
info.menu_list = entry->stack;
|
||||
info.list = entry_list;
|
||||
info.menu_list = entry_stack;
|
||||
info.type = type;
|
||||
info.enum_idx = enum_idx;
|
||||
|
||||
@ -2551,13 +2552,8 @@ int generic_menu_entry_action(
|
||||
|
||||
if (MENU_ENTRIES_NEEDS_REFRESH(menu_st))
|
||||
{
|
||||
menu_displaylist_ctx_entry_t entry;
|
||||
bool refresh = false;
|
||||
|
||||
entry.list = selection_buf;
|
||||
entry.stack = menu_stack;
|
||||
|
||||
menu_driver_displaylist_push(&entry);
|
||||
menu_driver_displaylist_push(selection_buf, menu_stack);
|
||||
menu_entries_ctl(MENU_ENTRIES_CTL_UNSET_REFRESH, &refresh);
|
||||
}
|
||||
|
||||
@ -4333,7 +4329,6 @@ static bool menu_driver_iterate(
|
||||
|
||||
int menu_driver_deferred_push_content_list(file_list_t *list)
|
||||
{
|
||||
menu_displaylist_ctx_entry_t entry;
|
||||
struct rarch_state *p_rarch = &rarch_st;
|
||||
struct menu_state *menu_st = &p_rarch->menu_driver_state;
|
||||
menu_handle_t *menu_data = p_rarch->menu_driver_data;
|
||||
@ -4352,9 +4347,7 @@ int menu_driver_deferred_push_content_list(file_list_t *list)
|
||||
|
||||
menu_st->selection_ptr = 0;
|
||||
|
||||
entry.list = list;
|
||||
entry.stack = selection_buf;
|
||||
if (!menu_driver_displaylist_push(&entry))
|
||||
if (!menu_driver_displaylist_push(list, selection_buf))
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user