mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
file_archive_get_file_list - file_archive_walk returns boolean type,
not integer
This commit is contained in:
parent
678089c2de
commit
c3c3eedfa2
@ -584,7 +584,6 @@ end:
|
|||||||
struct string_list *file_archive_get_file_list(const char *path,
|
struct string_list *file_archive_get_file_list(const char *path,
|
||||||
const char *valid_exts)
|
const char *valid_exts)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
struct archive_extract_userdata userdata;
|
struct archive_extract_userdata userdata;
|
||||||
|
|
||||||
strlcpy(userdata.archive_path, path, sizeof(userdata.archive_path));
|
strlcpy(userdata.archive_path, path, sizeof(userdata.archive_path));
|
||||||
@ -609,14 +608,9 @@ struct string_list *file_archive_get_file_list(const char *path,
|
|||||||
if (!userdata.list)
|
if (!userdata.list)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
ret = file_archive_walk(path, valid_exts,
|
if (!file_archive_walk(path, valid_exts,
|
||||||
file_archive_get_file_list_cb, &userdata);
|
file_archive_get_file_list_cb, &userdata))
|
||||||
|
goto error;
|
||||||
if (ret <= 0)
|
|
||||||
{
|
|
||||||
if (ret != -1)
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
return userdata.list;
|
return userdata.list;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user