mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Prevent crash when we select 'Open Archive' and we have no
installed cores and no core info files
This commit is contained in:
parent
c27038d9bd
commit
cc282e4bf6
@ -653,8 +653,7 @@ static int general_push(menu_displaylist_info_t *info,
|
|||||||
switch (id)
|
switch (id)
|
||||||
{
|
{
|
||||||
case PUSH_ARCHIVE_OPEN_DETECT_CORE:
|
case PUSH_ARCHIVE_OPEN_DETECT_CORE:
|
||||||
|
if (list && !string_is_empty(list->all_ext))
|
||||||
if (!string_is_empty(list->all_ext))
|
|
||||||
strlcpy(info->exts, list->all_ext, sizeof(info->exts));
|
strlcpy(info->exts, list->all_ext, sizeof(info->exts));
|
||||||
else if (system_menu->valid_extensions)
|
else if (system_menu->valid_extensions)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user