mirror of
https://github.com/libretro/RetroArch
synced 2025-04-25 09:02:44 +00:00
scanner: skip all databases with incompatible file extensions, whether file is inside an archive or not
This commit is contained in:
parent
a0fcb1b694
commit
21725e484c
@ -947,13 +947,18 @@ static int task_database_iterate_crc_lookup(
|
|||||||
/* don't scan files that can't be in this database.
|
/* don't scan files that can't be in this database.
|
||||||
*
|
*
|
||||||
* Could be because of:
|
* Could be because of:
|
||||||
* A matching core missing */
|
* - A matching core missing
|
||||||
if (!(path_contains_compressed_file(name) &&
|
* - Incompatible file extension */
|
||||||
core_info_database_match_archive_member(
|
if (!core_info_database_supports_content_path(
|
||||||
db_state->list->elems[db_state->list_index].data)) &&
|
|
||||||
!core_info_database_supports_content_path(
|
|
||||||
db_state->list->elems[db_state->list_index].data, name))
|
db_state->list->elems[db_state->list_index].data, name))
|
||||||
return database_info_list_iterate_next(db_state);
|
return database_info_list_iterate_next(db_state);
|
||||||
|
|
||||||
|
if (!path_contains_compressed_file(name))
|
||||||
|
{
|
||||||
|
if (core_info_database_match_archive_member(
|
||||||
|
db_state->list->elems[db_state->list_index].data))
|
||||||
|
return database_info_list_iterate_next(db_state);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(query, sizeof(query),
|
snprintf(query, sizeof(query),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user