From fcda24be299355ffd72d399f991534fdf9a3eb5e Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Fri, 10 Jan 2025 20:51:04 -0500 Subject: [PATCH] Files in archives should always be marked as such (#17390) --- libretro-common/file/archive_file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libretro-common/file/archive_file.c b/libretro-common/file/archive_file.c index 4df2ce51cc..0b3a6bf1c1 100644 --- a/libretro-common/file/archive_file.c +++ b/libretro-common/file/archive_file.c @@ -50,7 +50,7 @@ static int file_archive_get_file_list_cb( struct archive_extract_userdata *userdata) { union string_list_elem_attr attr; - attr.i = 0; + attr.i = RARCH_COMPRESSED_FILE_IN_ARCHIVE; if (valid_exts) { @@ -80,8 +80,6 @@ static int file_archive_get_file_list_cb( string_list_deinitialize(&ext_list); return -1; } - - attr.i = RARCH_COMPRESSED_FILE_IN_ARCHIVE; } string_list_deinitialize(&ext_list);