mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 14:28:47 +00:00
Use menu_displaylist_push from one place
This commit is contained in:
parent
9201f70250
commit
80b3bc6254
@ -427,9 +427,7 @@ int deferred_push_content_list(void *data, void *userdata, const char *path,
|
||||
const char *label, unsigned type)
|
||||
{
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
if (!menu_list)
|
||||
return -1;
|
||||
return menu_displaylist_push((file_list_t*)data, menu_list->selection_buf);
|
||||
return action_refresh_default((file_list_t*)data, menu_list->selection_buf);
|
||||
}
|
||||
|
||||
static int deferred_push_database_manager_list(menu_displaylist_info_t *info)
|
||||
|
@ -17,8 +17,10 @@
|
||||
#include "../menu_cbs.h"
|
||||
#include "../menu_hash.h"
|
||||
|
||||
static int action_refresh_default(file_list_t *list, file_list_t *menu_list)
|
||||
int action_refresh_default(file_list_t *list, file_list_t *menu_list)
|
||||
{
|
||||
if (!menu_list)
|
||||
return -1;
|
||||
return menu_displaylist_push(list, menu_list);
|
||||
}
|
||||
|
||||
|
@ -71,6 +71,8 @@ extern char core_updater_path[PATH_MAX_LENGTH];
|
||||
|
||||
/* Function callbacks */
|
||||
|
||||
int action_refresh_default(file_list_t *list, file_list_t *menu_list);
|
||||
|
||||
int shader_action_parameter_right(unsigned type, const char *label, bool wraparound);
|
||||
|
||||
int shader_action_parameter_preset_right(unsigned type, const char *label,
|
||||
|
Loading…
Reference in New Issue
Block a user