mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +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;
|
static bool xmb_show_video = true;
|
||||||
#endif
|
#endif
|
||||||
static bool xmb_show_history = true;
|
static bool xmb_show_history = true;
|
||||||
|
#ifdef HAVE_LIBRETRODB
|
||||||
|
static bool xmb_show_add = true;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static float menu_wallpaper_opacity = 0.300;
|
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);
|
SETTING_BOOL("xmb_show_video", &settings->menu.xmb.show_video, true, xmb_show_video, false);
|
||||||
#endif
|
#endif
|
||||||
SETTING_BOOL("xmb_show_history", &settings->menu.xmb.show_history, true, xmb_show_history, false);
|
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
|
#endif
|
||||||
SETTING_BOOL("rgui_show_start_screen", &settings->menu_show_start_screen, false, false /* TODO */, false);
|
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);
|
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_music;
|
||||||
bool show_video;
|
bool show_video;
|
||||||
bool show_history;
|
bool show_history;
|
||||||
|
bool show_add;
|
||||||
} xmb;
|
} xmb;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
|
@ -1073,6 +1073,8 @@ MSG_HASH(MENU_ENUM_LABEL_XMB_SHADOWS_ENABLE,
|
|||||||
"xmb_shadows_enable")
|
"xmb_shadows_enable")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_XMB_SHOW_HISTORY,
|
MSG_HASH(MENU_ENUM_LABEL_XMB_SHOW_HISTORY,
|
||||||
"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,
|
MSG_HASH(MENU_ENUM_LABEL_XMB_SHOW_IMAGES,
|
||||||
"xmb_show_images")
|
"xmb_show_images")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_XMB_SHOW_MUSIC,
|
MSG_HASH(MENU_ENUM_LABEL_XMB_SHOW_MUSIC,
|
||||||
|
@ -1684,6 +1684,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_SHADOWS_ENABLE,
|
|||||||
"Icon Shadows Enable")
|
"Icon Shadows Enable")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_SHOW_HISTORY,
|
MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_SHOW_HISTORY,
|
||||||
"Show History Tab")
|
"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,
|
MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_SHOW_IMAGES,
|
||||||
"Show Image Tab")
|
"Show Image Tab")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_SHOW_MUSIC,
|
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;
|
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_VIDEO;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_LIBRETRODB
|
#ifdef HAVE_LIBRETRODB
|
||||||
|
if (settings->menu.xmb.show_add)
|
||||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_ADD;
|
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_ADD;
|
||||||
#endif
|
#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_displaylist_parse_settings_enum(menu, info,
|
||||||
MENU_ENUM_LABEL_XMB_SHOW_HISTORY,
|
MENU_ENUM_LABEL_XMB_SHOW_HISTORY,
|
||||||
PARSE_ONLY_BOOL, false);
|
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_displaylist_parse_settings_enum(menu, info,
|
||||||
MENU_ENUM_LABEL_MATERIALUI_MENU_COLOR_THEME,
|
MENU_ENUM_LABEL_MATERIALUI_MENU_COLOR_THEME,
|
||||||
PARSE_ONLY_UINT, false);
|
PARSE_ONLY_UINT, false);
|
||||||
|
@ -5084,6 +5084,23 @@ static bool setting_append_list(
|
|||||||
general_write_handler,
|
general_write_handler,
|
||||||
general_read_handler,
|
general_read_handler,
|
||||||
SD_FLAG_NONE);
|
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
|
#endif
|
||||||
|
@ -662,6 +662,7 @@ enum msg_hash_enums
|
|||||||
MENU_LABEL(XMB_SHOW_MUSIC),
|
MENU_LABEL(XMB_SHOW_MUSIC),
|
||||||
MENU_LABEL(XMB_SHOW_VIDEO),
|
MENU_LABEL(XMB_SHOW_VIDEO),
|
||||||
MENU_LABEL(XMB_SHOW_HISTORY),
|
MENU_LABEL(XMB_SHOW_HISTORY),
|
||||||
|
MENU_LABEL(XMB_SHOW_ADD),
|
||||||
MENU_LABEL(XMB_RIBBON_ENABLE),
|
MENU_LABEL(XMB_RIBBON_ENABLE),
|
||||||
MENU_LABEL(THUMBNAILS),
|
MENU_LABEL(THUMBNAILS),
|
||||||
MENU_LABEL(TIMEDATE_ENABLE),
|
MENU_LABEL(TIMEDATE_ENABLE),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user