mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Cleanups
This commit is contained in:
parent
5e2e1c82c5
commit
cb9a9e9525
@ -782,11 +782,10 @@ int menu_entry_action(menu_entry_t *entry,
|
||||
{
|
||||
if (cbs && cbs->action_refresh)
|
||||
{
|
||||
bool refresh = false;
|
||||
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
||||
|
||||
cbs->action_refresh(selection_buf, menu_stack);
|
||||
menu_entries_ctl(MENU_ENTRIES_CTL_UNSET_REFRESH, &refresh);
|
||||
menu_entries_need_refresh = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -905,7 +904,6 @@ static bool menu_list_pop_stack(menu_list_t *list,
|
||||
size_t idx, size_t *directory_ptr, bool animate)
|
||||
{
|
||||
menu_ctx_list_t list_info;
|
||||
bool refresh = false;
|
||||
file_list_t *menu_list = menu_list_get(list, (unsigned)idx);
|
||||
|
||||
if (menu_list_get_stack_size(list, idx) <= 1)
|
||||
@ -931,7 +929,7 @@ static bool menu_list_pop_stack(menu_list_t *list,
|
||||
file_list_pop(menu_list, directory_ptr);
|
||||
menu_driver_list_set_selection(menu_list);
|
||||
if (animate)
|
||||
menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh);
|
||||
menu_entries_need_refresh = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -939,14 +937,14 @@ static bool menu_list_pop_stack(menu_list_t *list,
|
||||
static void menu_list_flush_stack(menu_list_t *list,
|
||||
size_t idx, const char *needle, unsigned final_type)
|
||||
{
|
||||
bool refresh = false;
|
||||
const char *path = NULL;
|
||||
const char *label = NULL;
|
||||
unsigned type = 0;
|
||||
size_t entry_idx = 0;
|
||||
file_list_t *menu_list = menu_list_get(list, (unsigned)idx);
|
||||
const char *path = NULL;
|
||||
const char *label = NULL;
|
||||
unsigned type = 0;
|
||||
size_t entry_idx = 0;
|
||||
file_list_t *menu_list = menu_list_get(list, (unsigned)idx);
|
||||
|
||||
menu_entries_need_refresh = true;
|
||||
|
||||
menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh);
|
||||
file_list_get_last(menu_list,
|
||||
&path, &label, &type, &entry_idx);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user