mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(Menu) Add cache for selection_buf and menu_stack
This commit is contained in:
parent
4bdc3a2818
commit
0227602ce5
@ -57,6 +57,8 @@ void *menu_list_new(void)
|
||||
|
||||
list->menu_stack = (file_list_t*)calloc(1, sizeof(file_list_t));
|
||||
list->selection_buf = (file_list_t*)calloc(1, sizeof(file_list_t));
|
||||
list->menu_stack_old = (file_list_t*)calloc(1, sizeof(file_list_t));
|
||||
list->selection_buf_old = (file_list_t*)calloc(1, sizeof(file_list_t));
|
||||
|
||||
if (!list->menu_stack || !list->selection_buf)
|
||||
{
|
||||
|
@ -26,7 +26,9 @@ extern "C" {
|
||||
typedef struct menu_list
|
||||
{
|
||||
file_list_t *menu_stack;
|
||||
file_list_t *menu_stack_old;
|
||||
file_list_t *selection_buf;
|
||||
file_list_t *selection_buf_old;
|
||||
} menu_list_t;
|
||||
|
||||
void menu_list_free(menu_list_t *menu_list);
|
||||
|
Loading…
x
Reference in New Issue
Block a user