mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-03-07 02:47:24 +00:00
file_archive_get_file_list - take out HAVE_COMPRESSION code
This commit is contained in:
parent
5364b0b837
commit
39b41a1f51
@ -425,8 +425,8 @@ database_info_handle_t *database_info_dir_init(const char *dir,
|
||||
|
||||
if (path_is_compressed_file(path) && !path_contains_compressed_file(path))
|
||||
{
|
||||
struct string_list *archive_list =
|
||||
file_archive_get_file_list(path, NULL);
|
||||
struct string_list *archive_list = path_is_compressed_file(path) ?
|
||||
file_archive_get_file_list(path, NULL) : NULL;
|
||||
|
||||
if (archive_list && archive_list->size > 0)
|
||||
{
|
||||
@ -487,8 +487,8 @@ database_info_handle_t *database_info_file_init(const char *path,
|
||||
|
||||
if (path_is_compressed_file(path))
|
||||
{
|
||||
struct string_list *archive_list =
|
||||
file_archive_get_file_list(path, NULL);
|
||||
struct string_list *archive_list =path_is_compressed_file(path) ?
|
||||
file_archive_get_file_list(path, NULL) : NULL;
|
||||
|
||||
if (archive_list && archive_list->size > 0)
|
||||
{
|
||||
|
@ -575,13 +575,6 @@ struct string_list *file_archive_get_file_list(const char *path,
|
||||
{
|
||||
struct archive_extract_userdata userdata = {{0}};
|
||||
|
||||
#ifdef HAVE_COMPRESSION
|
||||
if (!path_is_compressed_file(path))
|
||||
return NULL;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
|
||||
userdata.list_only = true;
|
||||
strlcpy(userdata.archive_path, path, sizeof(userdata.archive_path));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user