mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
Change signature on menu_list_pop_stack
This commit is contained in:
parent
62a4daf375
commit
fe213531b7
@ -164,27 +164,30 @@ void menu_list_flush_stack(menu_list_t *list,
|
||||
|
||||
menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &new_selection_ptr);
|
||||
|
||||
menu_list_pop_stack(list, &new_selection_ptr);
|
||||
if (menu_list_pop_stack(list, &new_selection_ptr))
|
||||
{
|
||||
menu_navigation_ctl(MENU_NAVIGATION_CTL_SET_SELECTION, &new_selection_ptr);
|
||||
|
||||
menu_navigation_ctl(MENU_NAVIGATION_CTL_SET_SELECTION, &new_selection_ptr);
|
||||
|
||||
menu_list_get_last(list->menu_stack,
|
||||
&path, &label, &type, &entry_idx);
|
||||
menu_list_get_last(list->menu_stack,
|
||||
&path, &label, &type, &entry_idx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void menu_list_pop_stack(menu_list_t *list, size_t *directory_ptr)
|
||||
bool menu_list_pop_stack(menu_list_t *list, size_t *directory_ptr)
|
||||
{
|
||||
if (!list)
|
||||
return;
|
||||
return false;
|
||||
|
||||
if (menu_list_get_stack_size(list) <= 1)
|
||||
return;
|
||||
return false;
|
||||
|
||||
menu_driver_list_cache(MENU_LIST_PLAIN, 0);
|
||||
|
||||
menu_list_pop(list->menu_stack, directory_ptr);
|
||||
menu_entries_set_refresh(false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
@ -18,6 +18,8 @@
|
||||
#define _MENU_LIST_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <boolean.h>
|
||||
#include <file/file_list.h>
|
||||
|
||||
#include "menu_entries.h"
|
||||
@ -49,7 +51,7 @@ menu_list_t *menu_list_new(void);
|
||||
void menu_list_flush_stack(menu_list_t *list,
|
||||
const char *needle, unsigned final_type);
|
||||
|
||||
void menu_list_pop_stack(menu_list_t *list, size_t *directory_ptr);
|
||||
bool menu_list_pop_stack(menu_list_t *list, size_t *directory_ptr);
|
||||
|
||||
void menu_list_get_at_offset(const file_list_t *list, size_t idx,
|
||||
const char **path, const char **label, unsigned *file_type,
|
||||
|
Loading…
x
Reference in New Issue
Block a user