Fix to earlier HAVE_CORE_INFO_CACHE commit

This commit is contained in:
twinaphex 2021-10-14 16:46:48 +02:00
parent a476910ca6
commit 6d13461948

View File

@ -9886,14 +9886,12 @@ static bool setting_append_list(
bool_entries[listing].flags = SD_FLAG_NONE;
listing++;
#ifdef HAVE_CORE_INFO_CACHE
bool_entries[listing].target = &settings->bools.core_info_cache_enable;
bool_entries[listing].name_enum_idx = MENU_ENUM_LABEL_CORE_INFO_CACHE_ENABLE;
bool_entries[listing].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_CORE_INFO_CACHE_ENABLE;
bool_entries[listing].default_value = DEFAULT_CORE_INFO_CACHE_ENABLE;
bool_entries[listing].flags = SD_FLAG_NONE;
listing++;
#endif
#ifndef HAVE_DYNAMIC
bool_entries[listing].target = &settings->bools.always_reload_core_on_run_content;
@ -9905,6 +9903,11 @@ static bool setting_append_list(
#endif
for (i = 0; i < ARRAY_SIZE(bool_entries); i++)
{
#if defined(HAVE_CORE_INFO_CACHE)
if (bool_entries[i].name_enum_idx ==
MENU_ENUM_LABEL_CORE_INFO_CACHE_ENABLE)
continue;
#endif
CONFIG_BOOL(
list, list_info,
bool_entries[i].target,