mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
action_ok_compressed_archive_push - use menu_displaylist_push_list
This commit is contained in:
parent
f6fafeb5fa
commit
96666ad5f9
@ -1779,7 +1779,6 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
|||||||
bool need_push = false;
|
bool need_push = false;
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
|
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case DISPLAYLIST_NONE:
|
case DISPLAYLIST_NONE:
|
||||||
|
@ -788,14 +788,17 @@ static int action_ok_core_download(const char *path,
|
|||||||
static int action_ok_compressed_archive_push(const char *path,
|
static int action_ok_compressed_archive_push(const char *path,
|
||||||
const char *label, unsigned type, size_t idx)
|
const char *label, unsigned type, size_t idx)
|
||||||
{
|
{
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_displaylist_info_t info = {0};
|
||||||
if (!menu)
|
menu_list_t *menu_list = menu_list_get_ptr();
|
||||||
|
if (!menu_list)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
menu_list_push(menu->menu_list->menu_stack,
|
info.list = menu_list->menu_stack;
|
||||||
path, "load_open_zip", 0, idx);
|
info.directory_ptr = idx;
|
||||||
|
strlcpy(info.path, path, sizeof(info.path));
|
||||||
|
strlcpy(info.label, "load_open_zip", sizeof(info.label));
|
||||||
|
|
||||||
return 0;
|
return menu_displaylist_push_list(&info, DISPLAYLIST_SELECT);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int action_ok_directory_push(const char *path,
|
static int action_ok_directory_push(const char *path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user