Merge pull request #12431 from yoshisuga/ios_disable_core_info_cache

[iOS/tvOS] Disable core info caching for iOS
This commit is contained in:
Autechre 2021-05-24 18:42:51 +02:00 committed by GitHub
commit e616b41b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -1809,13 +1809,18 @@ static core_info_list_t *core_info_list_new(const char *path,
core_info_list->list = core_info;
core_info_list->count = path_list->core_list->size;
/* Read core info cache, if enabled */
#if !defined(IOS)
/* Read core info cache, if enabled
* > This functionality is hard disabled on iOS/tvOS,
* where core path changes on every install
* (invalidating any cached parameters) */
if (enable_cache)
{
core_info_cache_list = core_info_cache_read(info_dir);
if (!core_info_cache_list)
goto error;
}
#endif
for (i = 0; i < path_list->core_list->size; i++)
{

View File

@ -9396,6 +9396,11 @@ static bool setting_append_list(
#endif
for (i = 0; i < ARRAY_SIZE(bool_entries); i++)
{
#if defined(IOS)
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,