mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
more archive paths
This commit is contained in:
parent
c7a739b2bd
commit
992b87321a
@ -572,19 +572,13 @@ struct string_list *file_archive_get_file_list(const char *path,
|
||||
goto error;
|
||||
|
||||
if (userdata.archive_path)
|
||||
{
|
||||
free(userdata.archive_path);
|
||||
userdata.archive_path = NULL;
|
||||
}
|
||||
|
||||
return userdata.list;
|
||||
|
||||
error:
|
||||
if (userdata.archive_path)
|
||||
{
|
||||
free(userdata.archive_path);
|
||||
userdata.archive_path = NULL;
|
||||
}
|
||||
if (userdata.list)
|
||||
string_list_free(userdata.list);
|
||||
return NULL;
|
||||
|
@ -414,14 +414,22 @@ static int task_database_iterate_playlist_archive(
|
||||
strlcpy(userdata.archive_name, db_state->archive_name, sizeof(userdata.archive_name));
|
||||
|
||||
userdata.crc = db_state->crc;
|
||||
userdata.archive_path = strdup(name);
|
||||
|
||||
if (file_archive_parse_file_iterate(&db->state,
|
||||
&returnerr, name, NULL, archive_compare_crc32,
|
||||
&userdata))
|
||||
{
|
||||
if (userdata.archive_path)
|
||||
free(userdata.archive_path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (db_state->crc)
|
||||
file_archive_parse_file_iterate_stop(&db->state);
|
||||
|
||||
if (userdata.archive_path)
|
||||
free(userdata.archive_path);
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user