Limit core suggestion option only for dynamic platforms

This commit is contained in:
sonninnos 2025-07-16 06:16:43 +03:00
parent df808f7663
commit 19f6d94a78
2 changed files with 5 additions and 2 deletions

View File

@ -1931,7 +1931,6 @@ static bool menu_content_find_first_core(
menu_content_ctx_defer_info_t *def_info,
bool load_content_with_current_core, char *s, size_t len)
{
settings_t *settings = config_get_ptr();
const core_info_t *info = NULL;
size_t supported = 0;
core_info_list_t *core_info = (core_info_list_t*)def_info->data;
@ -1963,10 +1962,12 @@ static bool menu_content_find_first_core(
def_info->s, &info,
&supported);
#ifdef HAVE_DYNAMIC
/* Don't suggest cores if a core is already loaded. */
if ( !path_is_empty(RARCH_PATH_CORE)
&& !settings->bools.core_suggest_always)
&& !config_get_ptr()->bools.core_suggest_always)
load_content_with_current_core = true;
#endif
/* We started the menu with 'Load Content', we are
* going to use the current core to load this. */

View File

@ -20353,6 +20353,7 @@ static bool setting_append_list(
general_read_handler,
SD_FLAG_NONE);
#ifdef HAVE_DYNAMIC
CONFIG_BOOL(
list, list_info,
&settings->bools.core_suggest_always,
@ -20367,6 +20368,7 @@ static bool setting_append_list(
general_write_handler,
general_read_handler,
SD_FLAG_NONE);
#endif
END_SUB_GROUP(list, list_info, parent_group);
END_GROUP(list, list_info, parent_group);