From 33de17548beb18d55a04684e11eaac49c851a54c Mon Sep 17 00:00:00 2001 From: twinaphex <libretro@gmail.com> Date: Sat, 22 May 2021 16:25:05 +0200 Subject: [PATCH] Fix regression caused by core info file caching - Downloads was no longer showing up in Load Content --- core_info.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core_info.c b/core_info.c index 3a60eff22a..fa26d3ccf2 100644 --- a/core_info.c +++ b/core_info.c @@ -1846,6 +1846,12 @@ static core_info_list_t *core_info_list_new(const char *path, * cannot be cached */ info->is_locked = core_info_path_is_locked(path_list->lock_list, core_filename); + /* 'info_count' is normally incremented inside + * core_info_parse_config_file(). If core entry + * is cached, must instead increment the value + * here */ + if (info->has_info) + core_info_list->info_count++; continue; } }