mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
Implemented setting for showing/hiding the "Load Content" option in XMB.
This commit is contained in:
parent
cc3b64f951
commit
0eb5566dea
@ -238,6 +238,7 @@ static bool default_block_config_read = true;
|
||||
|
||||
static bool menu_show_online_updater = true;
|
||||
static bool menu_show_load_core = true;
|
||||
static bool menu_show_load_content = true;
|
||||
|
||||
#if defined(HAVE_LAKKA) || defined(VITA)
|
||||
static bool menu_show_core_updater = false;
|
||||
|
@ -1203,6 +1203,7 @@ static struct config_bool_setting *populate_settings_bool(settings_t *settings,
|
||||
#endif
|
||||
SETTING_BOOL("xmb_show_music", &settings->bools.menu_xmb_show_music, true, xmb_show_music, false);
|
||||
SETTING_BOOL("menu_show_load_core", &settings->bools.menu_show_load_core, true, menu_show_load_core, false);
|
||||
SETTING_BOOL("menu_show_load_content", &settings->bools.menu_show_load_content, true, menu_show_load_content, false);
|
||||
SETTING_BOOL("menu_show_online_updater", &settings->bools.menu_show_online_updater, true, menu_show_online_updater, false);
|
||||
SETTING_BOOL("menu_show_core_updater", &settings->bools.menu_show_core_updater, true, menu_show_core_updater, false);
|
||||
#ifdef HAVE_FFMPEG
|
||||
|
@ -126,8 +126,9 @@ typedef struct settings
|
||||
bool menu_linear_filter;
|
||||
bool menu_horizontal_animation;
|
||||
bool menu_show_online_updater;
|
||||
bool menu_show_load_core;
|
||||
bool menu_show_core_updater;
|
||||
bool menu_show_load_core;
|
||||
bool menu_show_load_content;
|
||||
bool menu_materialui_icons_enable;
|
||||
bool menu_xmb_shadows_enable;
|
||||
bool menu_xmb_show_settings;
|
||||
|
@ -3067,3 +3067,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -3067,3 +3067,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -3061,3 +3061,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -2930,3 +2930,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -3099,3 +3099,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -3153,3 +3153,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -3069,3 +3069,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -3062,3 +3062,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -1307,3 +1307,5 @@ MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY,
|
||||
"rename_entry")
|
||||
MSG_HASH(MENU_ENUM_LABEL_MENU_SHOW_LOAD_CORE,
|
||||
"menu_show_load_core")
|
||||
MSG_HASH(MENU_ENUM_LABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"menu_show_load_content")
|
||||
|
@ -2930,3 +2930,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -3994,3 +3994,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option."
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option."
|
||||
)
|
||||
|
@ -3037,3 +3037,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -3120,3 +3120,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -3155,3 +3155,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -3091,3 +3091,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
||||
"Show Load Core")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE,
|
||||
"Show/hide the 'Load Core' option.")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show Load Content")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
"Show/hide the 'Load Content' option.")
|
||||
|
@ -292,6 +292,7 @@ default_sublabel_macro(action_bind_sublabel_menu_font,
|
||||
default_sublabel_macro(action_bind_sublabel_menu_favorites_tab, MENU_ENUM_SUBLABEL_XMB_SHOW_FAVORITES)
|
||||
default_sublabel_macro(action_bind_sublabel_menu_images_tab, MENU_ENUM_SUBLABEL_XMB_SHOW_IMAGES)
|
||||
default_sublabel_macro(action_bind_sublabel_menu_show_load_core, MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CORE)
|
||||
default_sublabel_macro(action_bind_sublabel_menu_show_load_content, MENU_ENUM_SUBLABEL_MENU_SHOW_LOAD_CONTENT)
|
||||
default_sublabel_macro(action_bind_sublabel_menu_show_online_updater, MENU_ENUM_SUBLABEL_MENU_SHOW_ONLINE_UPDATER)
|
||||
default_sublabel_macro(action_bind_sublabel_menu_show_core_updater, MENU_ENUM_SUBLABEL_MENU_SHOW_CORE_UPDATER)
|
||||
default_sublabel_macro(action_bind_sublabel_menu_music_tab, MENU_ENUM_SUBLABEL_XMB_SHOW_MUSIC)
|
||||
@ -604,6 +605,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
||||
case MENU_ENUM_LABEL_MENU_SHOW_LOAD_CORE:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_show_load_core);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_MENU_SHOW_LOAD_CONTENT:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_show_load_content);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_MENU_SHOW_ONLINE_UPDATER:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_show_online_updater);
|
||||
break;
|
||||
|
@ -4329,8 +4329,11 @@ static int xmb_list_push(void *data, void *userdata,
|
||||
}
|
||||
}
|
||||
|
||||
if (settings->bools.menu_show_load_content)
|
||||
{
|
||||
entry.enum_idx = MENU_ENUM_LABEL_LOAD_CONTENT_LIST;
|
||||
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
||||
}
|
||||
|
||||
entry.enum_idx = MENU_ENUM_LABEL_ADD_CONTENT_LIST;
|
||||
menu_displaylist_ctl(DISPLAYLIST_SETTING_ENUM, &entry);
|
||||
|
@ -5282,6 +5282,10 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
||||
MENU_ENUM_LABEL_MENU_SHOW_LOAD_CORE,
|
||||
PARSE_ONLY_BOOL, false);
|
||||
|
||||
menu_displaylist_parse_settings_enum(menu, info,
|
||||
MENU_ENUM_LABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
PARSE_ONLY_BOOL, false);
|
||||
|
||||
#if defined(HAVE_NETWORKING) && !defined(HAVE_LAKKA)
|
||||
menu_displaylist_parse_settings_enum(menu, info,
|
||||
MENU_ENUM_LABEL_MENU_SHOW_ONLINE_UPDATER,
|
||||
|
@ -5394,6 +5394,21 @@ static bool setting_append_list(
|
||||
general_read_handler,
|
||||
SD_FLAG_NONE);
|
||||
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->bools.menu_show_load_content,
|
||||
MENU_ENUM_LABEL_MENU_SHOW_LOAD_CONTENT,
|
||||
MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
||||
menu_show_load_content,
|
||||
MENU_ENUM_LABEL_VALUE_OFF,
|
||||
MENU_ENUM_LABEL_VALUE_ON,
|
||||
&group_info,
|
||||
&subgroup_info,
|
||||
parent_group,
|
||||
general_write_handler,
|
||||
general_read_handler,
|
||||
SD_FLAG_NONE);
|
||||
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->bools.menu_xmb_show_settings,
|
||||
|
@ -673,6 +673,7 @@ enum msg_hash_enums
|
||||
|
||||
/* Menu settings */
|
||||
MENU_LABEL(MENU_SHOW_LOAD_CORE),
|
||||
MENU_LABEL(MENU_SHOW_LOAD_CONTENT),
|
||||
MENU_LABEL(MENU_SHOW_ONLINE_UPDATER),
|
||||
MENU_LABEL(MENU_SHOW_CORE_UPDATER),
|
||||
MENU_LABEL(RUN_MUSIC),
|
||||
|
Loading…
Reference in New Issue
Block a user