From a800ab68eefef700053d20b282cdf20b093d34d9 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Wed, 12 Oct 2016 16:16:39 -0400 Subject: [PATCH] limit archive path exception only to databases that actually support archives --- core_info.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core_info.c b/core_info.c index 343c3e5ea8..85d67c6516 100644 --- a/core_info.c +++ b/core_info.c @@ -755,9 +755,10 @@ bool core_info_database_supports_content_path(const char *database_path, const c { const core_info_t *info = &core_info_curr_list->list[i]; - if (string_list_find_elem(info->supported_extensions_list, "zip") || - string_list_find_elem(info->supported_extensions_list, "7z")) - return false; + if (string_list_find_elem(info->databases_list, database)) + if (string_list_find_elem(info->supported_extensions_list, "zip") || + string_list_find_elem(info->supported_extensions_list, "7z")) + return false; } }