mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-22 12:40:31 +00:00
Add toggle to show / hide Import Content tab on XMB
This commit is contained in:
parent
f0a04fd98c
commit
c80d1e8242
@ -606,6 +606,9 @@ static bool xmb_show_music = true;
|
||||
static bool xmb_show_video = true;
|
||||
#endif
|
||||
static bool xmb_show_history = true;
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
static bool xmb_show_add = true;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static float menu_wallpaper_opacity = 0.300;
|
||||
|
@ -801,6 +801,9 @@ static int populate_settings_bool(settings_t *settings, struct config_bool_setti
|
||||
SETTING_BOOL("xmb_show_video", &settings->menu.xmb.show_video, true, xmb_show_video, false);
|
||||
#endif
|
||||
SETTING_BOOL("xmb_show_history", &settings->menu.xmb.show_history, true, xmb_show_history, false);
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
SETTING_BOOL("xmb_show_add", &settings->menu.xmb.show_add, true, xmb_show_add, false);
|
||||
#endif
|
||||
#endif
|
||||
SETTING_BOOL("rgui_show_start_screen", &settings->menu_show_start_screen, false, false /* TODO */, false);
|
||||
SETTING_BOOL("menu_navigation_wraparound_enable", &settings->menu.navigation.wraparound.enable, true, true, false);
|
||||
|
@ -199,6 +199,7 @@ typedef struct settings
|
||||
bool show_music;
|
||||
bool show_video;
|
||||
bool show_history;
|
||||
bool show_add;
|
||||
} xmb;
|
||||
|
||||
struct
|
||||
|
@ -1073,6 +1073,8 @@ MSG_HASH(MENU_ENUM_LABEL_XMB_SHADOWS_ENABLE,
|
||||
"xmb_shadows_enable")
|
||||
MSG_HASH(MENU_ENUM_LABEL_XMB_SHOW_HISTORY,
|
||||
"xmb_show_history")
|
||||
MSG_HASH(MENU_ENUM_LABEL_XMB_SHOW_ADD,
|
||||
"xmb_show_add")
|
||||
MSG_HASH(MENU_ENUM_LABEL_XMB_SHOW_IMAGES,
|
||||
"xmb_show_images")
|
||||
MSG_HASH(MENU_ENUM_LABEL_XMB_SHOW_MUSIC,
|
||||
|
@ -1684,6 +1684,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_SHADOWS_ENABLE,
|
||||
"Icon Shadows Enable")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_SHOW_HISTORY,
|
||||
"Show History Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_SHOW_ADD,
|
||||
"Show Import content Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_SHOW_IMAGES,
|
||||
"Show Image Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_SHOW_MUSIC,
|
||||
|
@ -3177,6 +3177,7 @@ static void *xmb_init(void **userdata)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_VIDEO;
|
||||
#endif
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
if (settings->menu.xmb.show_add)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_ADD;
|
||||
#endif
|
||||
|
||||
|
@ -4534,6 +4534,11 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
||||
menu_displaylist_parse_settings_enum(menu, info,
|
||||
MENU_ENUM_LABEL_XMB_SHOW_HISTORY,
|
||||
PARSE_ONLY_BOOL, false);
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
menu_displaylist_parse_settings_enum(menu, info,
|
||||
MENU_ENUM_LABEL_XMB_SHOW_ADD,
|
||||
PARSE_ONLY_BOOL, false);
|
||||
#endif
|
||||
menu_displaylist_parse_settings_enum(menu, info,
|
||||
MENU_ENUM_LABEL_MATERIALUI_MENU_COLOR_THEME,
|
||||
PARSE_ONLY_UINT, false);
|
||||
|
@ -5084,6 +5084,23 @@ static bool setting_append_list(
|
||||
general_write_handler,
|
||||
general_read_handler,
|
||||
SD_FLAG_NONE);
|
||||
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->menu.xmb.show_add,
|
||||
MENU_ENUM_LABEL_XMB_SHOW_ADD,
|
||||
MENU_ENUM_LABEL_VALUE_XMB_SHOW_ADD,
|
||||
xmb_show_add,
|
||||
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);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -662,6 +662,7 @@ enum msg_hash_enums
|
||||
MENU_LABEL(XMB_SHOW_MUSIC),
|
||||
MENU_LABEL(XMB_SHOW_VIDEO),
|
||||
MENU_LABEL(XMB_SHOW_HISTORY),
|
||||
MENU_LABEL(XMB_SHOW_ADD),
|
||||
MENU_LABEL(XMB_RIBBON_ENABLE),
|
||||
MENU_LABEL(THUMBNAILS),
|
||||
MENU_LABEL(TIMEDATE_ENABLE),
|
||||
|
Loading…
x
Reference in New Issue
Block a user