mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Cleanups
This commit is contained in:
parent
6cc47f8ee0
commit
93ae674624
@ -39,6 +39,32 @@
|
||||
#define BIND_ACTION_DEFERRED_PUSH(cbs, name) (cbs)->action_deferred_push = (name)
|
||||
#endif
|
||||
|
||||
#define generic_deferred_push(name, type) \
|
||||
static int (name)(menu_displaylist_info_t *info) \
|
||||
{ \
|
||||
return deferred_push_dlist(info, type); \
|
||||
}
|
||||
|
||||
#define generic_deferred_cursor_manager(name, type) \
|
||||
static int (name)(menu_displaylist_info_t *info) \
|
||||
{ \
|
||||
return deferred_push_cursor_manager_list_generic(info, type); \
|
||||
}
|
||||
|
||||
#define generic_deferred_push_general(name, a, b) \
|
||||
static int (name)(menu_displaylist_info_t *info) \
|
||||
{ \
|
||||
return general_push(info, a, b); \
|
||||
}
|
||||
|
||||
#define generic_deferred_push_clear_general(name, a, b) \
|
||||
static int (name)(menu_displaylist_info_t *info) \
|
||||
{ \
|
||||
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list); \
|
||||
return general_push(info, a, b); \
|
||||
}
|
||||
|
||||
|
||||
enum
|
||||
{
|
||||
PUSH_ARCHIVE_OPEN_DETECT_CORE = 0,
|
||||
@ -69,12 +95,6 @@ static int deferred_push_database_manager_list_deferred(
|
||||
return deferred_push_dlist(info, DISPLAYLIST_DATABASE_QUERY);
|
||||
}
|
||||
|
||||
#define generic_deferred_push(name, type) \
|
||||
static int (name)(menu_displaylist_info_t *info) \
|
||||
{ \
|
||||
return deferred_push_dlist(info, type); \
|
||||
}
|
||||
|
||||
static int deferred_push_remappings_port(menu_displaylist_info_t *info)
|
||||
{
|
||||
return deferred_push_dlist(info, DISPLAYLIST_OPTIONS_REMAPPINGS_PORT);
|
||||
@ -331,12 +351,6 @@ end:
|
||||
return ret;
|
||||
}
|
||||
|
||||
#define generic_deferred_cursor_manager(name, type) \
|
||||
static int (name)(menu_displaylist_info_t *info) \
|
||||
{ \
|
||||
return deferred_push_cursor_manager_list_generic(info, type); \
|
||||
}
|
||||
|
||||
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_max_users, DATABASE_QUERY_ENTRY_MAX_USERS)
|
||||
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_famitsu_magazine_rating, DATABASE_QUERY_ENTRY_FAMITSU_MAGAZINE_RATING)
|
||||
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_edge_magazine_rating, DATABASE_QUERY_ENTRY_EDGE_MAGAZINE_RATING)
|
||||
@ -637,19 +651,6 @@ static int general_push(menu_displaylist_info_t *info,
|
||||
return deferred_push_dlist(info, state);
|
||||
}
|
||||
|
||||
#define generic_deferred_push_general(name, a, b) \
|
||||
static int (name)(menu_displaylist_info_t *info) \
|
||||
{ \
|
||||
return general_push(info, a, b); \
|
||||
}
|
||||
|
||||
#define generic_deferred_push_clear_general(name, a, b) \
|
||||
static int (name)(menu_displaylist_info_t *info) \
|
||||
{ \
|
||||
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list); \
|
||||
return general_push(info, a, b); \
|
||||
}
|
||||
|
||||
generic_deferred_push_general(deferred_push_detect_core_list, PUSH_DETECT_CORE_LIST, DISPLAYLIST_CORES_DETECTED)
|
||||
generic_deferred_push_general(deferred_archive_open_detect_core, PUSH_ARCHIVE_OPEN_DETECT_CORE, DISPLAYLIST_DEFAULT)
|
||||
generic_deferred_push_general(deferred_archive_open, PUSH_ARCHIVE_OPEN, DISPLAYLIST_DEFAULT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user