mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 09:39:56 +00:00
'Open Archive' - if we have a core selected, filter roms
in an archive by supported extensions; otherwise, if no core is selected, show all files that are supported
This commit is contained in:
parent
34184654d9
commit
532b2ac1ba
@ -655,19 +655,6 @@ static int general_push(menu_displaylist_info_t *info,
|
|||||||
|
|
||||||
switch (id)
|
switch (id)
|
||||||
{
|
{
|
||||||
case PUSH_ARCHIVE_OPEN_DETECT_CORE:
|
|
||||||
if (list && !string_is_empty(list->all_ext))
|
|
||||||
strlcpy(info->exts, list->all_ext, sizeof(info->exts));
|
|
||||||
else if (system_menu->valid_extensions)
|
|
||||||
{
|
|
||||||
if (!string_is_empty(system_menu->valid_extensions))
|
|
||||||
strlcpy(info->exts, system_menu->valid_extensions,
|
|
||||||
sizeof(info->exts));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
strlcpy(info->exts, system->valid_extensions, sizeof(info->exts));
|
|
||||||
|
|
||||||
break;
|
|
||||||
case PUSH_ARCHIVE_OPEN:
|
case PUSH_ARCHIVE_OPEN:
|
||||||
if (system_menu->valid_extensions)
|
if (system_menu->valid_extensions)
|
||||||
{
|
{
|
||||||
@ -694,6 +681,7 @@ static int general_push(menu_displaylist_info_t *info,
|
|||||||
strlcpy(info->exts, system->valid_extensions, sizeof(info->exts));
|
strlcpy(info->exts, system->valid_extensions, sizeof(info->exts));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case PUSH_ARCHIVE_OPEN_DETECT_CORE:
|
||||||
case PUSH_DETECT_CORE_LIST:
|
case PUSH_DETECT_CORE_LIST:
|
||||||
{
|
{
|
||||||
char newstring[PATH_MAX_LENGTH];
|
char newstring[PATH_MAX_LENGTH];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user