menu: Hide 'Parent Directory' in compressed archives.

When browsing compressed archives 'Parent Directory' will not work and
will endlessly recurse into non-existent empty directories where the
user will have to press the back button to get out of every instance.

This will now hide 'Parent Directory' in compressed archives to avoid
this issue. The user will still be able to press the back button to
exit.

Fixes https://github.com/libretro/RetroArch/issues/2604
This commit is contained in:
orbea 2018-12-26 09:14:10 -08:00
parent 16c56eb9f3
commit ff63852a7c

View File

@ -305,7 +305,7 @@ void filebrowser_parse(menu_displaylist_info_t *info, unsigned type_data)
}
end:
if (info)
if (info && !path_is_compressed)
menu_entries_prepend(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PARENT_DIRECTORY),
path,