mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Hide 'Start Core' if we cannot directly start the core
This commit is contained in:
parent
0ecb2379ff
commit
cddb0a3b48
@ -2340,13 +2340,9 @@ static int action_ok_rpl_entry(const char *path,
|
|||||||
static int action_ok_start_core(const char *path,
|
static int action_ok_start_core(const char *path,
|
||||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||||
{
|
{
|
||||||
/* No content needed for this core, load core immediately. */
|
|
||||||
if (menu_driver_ctl(RARCH_MENU_CTL_HAS_LOAD_NO_CONTENT, NULL))
|
|
||||||
return generic_action_ok_file_load(NULL, NULL,
|
return generic_action_ok_file_load(NULL, NULL,
|
||||||
CORE_TYPE_PLAIN,
|
CORE_TYPE_PLAIN,
|
||||||
CONTENT_MODE_LOAD_NOTHING_WITH_CURRENT_CORE_FROM_MENU);
|
CONTENT_MODE_LOAD_NOTHING_WITH_CURRENT_CORE_FROM_MENU);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1375,8 +1375,11 @@ static int mui_list_push(void *data, void *userdata,
|
|||||||
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (menu_driver_ctl(RARCH_MENU_CTL_HAS_LOAD_NO_CONTENT, NULL))
|
||||||
|
{
|
||||||
entry.enum_idx = MENU_ENUM_LABEL_START_CORE;
|
entry.enum_idx = MENU_ENUM_LABEL_START_CORE;
|
||||||
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
||||||
|
}
|
||||||
|
|
||||||
entry.enum_idx = MENU_ENUM_LABEL_START_NET_RETROPAD;
|
entry.enum_idx = MENU_ENUM_LABEL_START_NET_RETROPAD;
|
||||||
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
||||||
|
@ -3122,8 +3122,11 @@ static int xmb_list_push(void *data, void *userdata,
|
|||||||
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (menu_driver_ctl(RARCH_MENU_CTL_HAS_LOAD_NO_CONTENT, NULL))
|
||||||
|
{
|
||||||
entry.enum_idx = MENU_ENUM_LABEL_START_CORE;
|
entry.enum_idx = MENU_ENUM_LABEL_START_CORE;
|
||||||
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
||||||
|
}
|
||||||
|
|
||||||
entry.enum_idx = MENU_ENUM_LABEL_START_NET_RETROPAD;
|
entry.enum_idx = MENU_ENUM_LABEL_START_NET_RETROPAD;
|
||||||
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
||||||
|
@ -3920,6 +3920,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
|||||||
menu_displaylist_parse_settings_enum(menu, info,
|
menu_displaylist_parse_settings_enum(menu, info,
|
||||||
MENU_ENUM_LABEL_CONTENT_SETTINGS,
|
MENU_ENUM_LABEL_CONTENT_SETTINGS,
|
||||||
PARSE_ACTION, false);
|
PARSE_ACTION, false);
|
||||||
|
|
||||||
|
if (menu_driver_ctl(RARCH_MENU_CTL_HAS_LOAD_NO_CONTENT, NULL))
|
||||||
menu_displaylist_parse_settings_enum(menu, info,
|
menu_displaylist_parse_settings_enum(menu, info,
|
||||||
MENU_ENUM_LABEL_START_CORE, PARSE_ACTION, false);
|
MENU_ENUM_LABEL_START_CORE, PARSE_ACTION, false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user