Limit core suggestion option only for dynamic platforms
This commit is contained in:
parent
df808f7663
commit
19f6d94a78
|
@ -1931,7 +1931,6 @@ static bool menu_content_find_first_core(
|
||||||
menu_content_ctx_defer_info_t *def_info,
|
menu_content_ctx_defer_info_t *def_info,
|
||||||
bool load_content_with_current_core, char *s, size_t len)
|
bool load_content_with_current_core, char *s, size_t len)
|
||||||
{
|
{
|
||||||
settings_t *settings = config_get_ptr();
|
|
||||||
const core_info_t *info = NULL;
|
const core_info_t *info = NULL;
|
||||||
size_t supported = 0;
|
size_t supported = 0;
|
||||||
core_info_list_t *core_info = (core_info_list_t*)def_info->data;
|
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,
|
def_info->s, &info,
|
||||||
&supported);
|
&supported);
|
||||||
|
|
||||||
|
#ifdef HAVE_DYNAMIC
|
||||||
/* Don't suggest cores if a core is already loaded. */
|
/* Don't suggest cores if a core is already loaded. */
|
||||||
if ( !path_is_empty(RARCH_PATH_CORE)
|
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;
|
load_content_with_current_core = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* We started the menu with 'Load Content', we are
|
/* We started the menu with 'Load Content', we are
|
||||||
* going to use the current core to load this. */
|
* going to use the current core to load this. */
|
||||||
|
|
|
@ -20353,6 +20353,7 @@ static bool setting_append_list(
|
||||||
general_read_handler,
|
general_read_handler,
|
||||||
SD_FLAG_NONE);
|
SD_FLAG_NONE);
|
||||||
|
|
||||||
|
#ifdef HAVE_DYNAMIC
|
||||||
CONFIG_BOOL(
|
CONFIG_BOOL(
|
||||||
list, list_info,
|
list, list_info,
|
||||||
&settings->bools.core_suggest_always,
|
&settings->bools.core_suggest_always,
|
||||||
|
@ -20367,6 +20368,7 @@ static bool setting_append_list(
|
||||||
general_write_handler,
|
general_write_handler,
|
||||||
general_read_handler,
|
general_read_handler,
|
||||||
SD_FLAG_NONE);
|
SD_FLAG_NONE);
|
||||||
|
#endif
|
||||||
|
|
||||||
END_SUB_GROUP(list, list_info, parent_group);
|
END_SUB_GROUP(list, list_info, parent_group);
|
||||||
END_GROUP(list, list_info, parent_group);
|
END_GROUP(list, list_info, parent_group);
|
||||||
|
|
Loading…
Reference in New Issue