mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
Fix slow content scans.
The check for unsupported content was reversed which was causing files to be checked against every database. Correcting this improves performance drastically. This appears to have been broken since at least commit #fc1f2cdcf.
This commit is contained in:
parent
7d3330da74
commit
48550235d5
@ -414,7 +414,7 @@ static int task_database_iterate_crc_lookup(
|
||||
unsupported_content = core_info_unsupported_content_path(name);
|
||||
|
||||
/* don't scan files that can't be in this database */
|
||||
if(!db_supports_content && !unsupported_content)
|
||||
if(!db_supports_content || unsupported_content)
|
||||
return database_info_list_iterate_next(db_state);
|
||||
|
||||
snprintf(query, sizeof(query),
|
||||
|
Loading…
x
Reference in New Issue
Block a user