mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-22 02:30:56 +00:00
zip_file_decompressed - cleanup #2
This commit is contained in:
parent
adbaab9794
commit
6d45804257
10
file_ops.c
10
file_ops.c
@ -419,9 +419,10 @@ static int zip_file_decompressed(const char *name, const char *valid_exts,
|
|||||||
uint32_t crc32, void *userdata)
|
uint32_t crc32, void *userdata)
|
||||||
{
|
{
|
||||||
struct decomp_state *st = (struct decomp_state*)userdata;
|
struct decomp_state *st = (struct decomp_state*)userdata;
|
||||||
|
|
||||||
/* Ignore directories. */
|
/* Ignore directories. */
|
||||||
if (name[strlen(name) - 1] == '/' || name[strlen(name) - 1] == '\\')
|
if (name[strlen(name) - 1] == '/' || name[strlen(name) - 1] == '\\')
|
||||||
goto next_file;
|
return 1;
|
||||||
|
|
||||||
RARCH_LOG("[deflate] Path: %s, CRC32: 0x%x\n", name, crc32);
|
RARCH_LOG("[deflate] Path: %s, CRC32: 0x%x\n", name, crc32);
|
||||||
|
|
||||||
@ -467,15 +468,10 @@ static int zip_file_decompressed(const char *name, const char *valid_exts,
|
|||||||
free(handle.data);
|
free(handle.data);
|
||||||
|
|
||||||
if (goto_error)
|
if (goto_error)
|
||||||
goto error;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
next_file:
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
error:
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int read_zip_file(const char *path,
|
static int read_zip_file(const char *path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user