mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-04 18:47:09 +00:00
Create menu_list_insert
This commit is contained in:
parent
521548c99b
commit
3b165ba254
@ -335,18 +335,10 @@ end:
|
||||
menu_common_list_clear(list);
|
||||
}
|
||||
|
||||
|
||||
void menu_list_push(file_list_t *list,
|
||||
static void menu_list_insert(file_list_t *list,
|
||||
const char *path, const char *label,
|
||||
unsigned type, size_t directory_ptr)
|
||||
{
|
||||
if (!list)
|
||||
return;
|
||||
if (!label)
|
||||
return;
|
||||
|
||||
file_list_push(list, path, label, type, directory_ptr);
|
||||
|
||||
if (!driver.menu_ctx)
|
||||
return;
|
||||
|
||||
@ -356,6 +348,17 @@ void menu_list_push(file_list_t *list,
|
||||
menu_common_list_insert(list, path, label, type, list->size - 1);
|
||||
}
|
||||
|
||||
void menu_list_push(file_list_t *list,
|
||||
const char *path, const char *label,
|
||||
unsigned type, size_t directory_ptr)
|
||||
{
|
||||
if (!list || !label)
|
||||
return;
|
||||
|
||||
file_list_push(list, path, label, type, directory_ptr);
|
||||
menu_list_insert(list, path, label, type, directory_ptr);
|
||||
}
|
||||
|
||||
void menu_list_push_refresh(file_list_t *list,
|
||||
const char *path, const char *label,
|
||||
unsigned type, size_t directory_ptr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user