mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
Merge pull request #6592 from Ryunam/playlist-work
Add toggle to show/hide Playlist tabs on XMB
This commit is contained in:
commit
a4f1c6b602
@ -297,6 +297,7 @@ static bool content_show_history = true;
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
static bool content_show_add = true;
|
||||
#endif
|
||||
static bool content_show_playlists = true;
|
||||
|
||||
#ifdef HAVE_XMB
|
||||
static unsigned xmb_scale_factor = 100;
|
||||
|
@ -1312,6 +1312,7 @@ static struct config_bool_setting *populate_settings_bool(settings_t *settings,
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
SETTING_BOOL("content_show_add", &settings->bools.menu_content_show_add, true, content_show_add, false);
|
||||
#endif
|
||||
SETTING_BOOL("content_show_playlists", &settings->bools.menu_content_show_playlists, true, content_show_playlists, 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_information", &settings->bools.menu_show_information, true, menu_show_information, false);
|
||||
|
@ -158,6 +158,7 @@ typedef struct settings
|
||||
bool menu_content_show_netplay;
|
||||
bool menu_content_show_history;
|
||||
bool menu_content_show_add;
|
||||
bool menu_content_show_playlists;
|
||||
bool menu_unified_controls;
|
||||
bool quick_menu_show_take_screenshot;
|
||||
bool quick_menu_show_save_load_state;
|
||||
|
@ -1879,6 +1879,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_HISTORY,
|
||||
"Show History Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_ADD,
|
||||
"Show Import content Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_PLAYLISTS,
|
||||
"Show Playlist Tabs")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_FAVORITES,
|
||||
"Show Favorites Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_IMAGES,
|
||||
@ -3081,6 +3083,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY,
|
||||
"Show the recent history tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD,
|
||||
"Show the import content tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
"Show playlist tabs inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN,
|
||||
"Show startup screen in menu. This is automatically set to false after the program starts for the first time.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
||||
|
@ -2909,6 +2909,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY,
|
||||
"Show the recent history tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD,
|
||||
"Show the import content tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
"Show playlist tabs inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN,
|
||||
"Show startup screen in menu. This is automatically set to false after the program starts for the first time.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
||||
|
@ -2901,6 +2901,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY,
|
||||
"Show the recent history tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD,
|
||||
"Show the import content tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
"Show playlist tabs inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN,
|
||||
"Show startup screen in menu. This is automatically set to false after the program starts for the first time.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
||||
|
@ -2774,6 +2774,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY,
|
||||
"Show the recent history tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD,
|
||||
"Show the import content tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
"Show playlist tabs inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN,
|
||||
"Show startup screen in menu. This is automatically set to false after the program starts for the first time.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
||||
|
@ -2939,6 +2939,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY,
|
||||
"Affiche l'onglet de l'historique dans le menu principal.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD,
|
||||
"Show the import content tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
"Show playlist tabs inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN,
|
||||
"Show startup screen in menu. This is automatically set to false after the program starts for the first time.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
||||
|
@ -2991,6 +2991,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY,
|
||||
"Mostra la colonna cronologia all'interno del menu principale.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD,
|
||||
"Mostra la colonna importa contenuto all'interno del menu principale.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
"Mostra le colonne delle playlist all'interno del menu principale")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN,
|
||||
"Mostra la schermata di avvio nel menu. Questo viene automaticamente impostato su off dopo l'avvio del programma per la prima volta.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
||||
|
@ -1253,6 +1253,8 @@ MSG_HASH(MENU_ENUM_LABEL_CONTENT_SHOW_HISTORY,
|
||||
"content_show_history")
|
||||
MSG_HASH(MENU_ENUM_LABEL_CONTENT_SHOW_ADD,
|
||||
"content_show_add")
|
||||
MSG_HASH(MENU_ENUM_LABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
"content_show_playlists")
|
||||
MSG_HASH(MENU_ENUM_LABEL_CONTENT_SHOW_FAVORITES,
|
||||
"content_show_favorites")
|
||||
MSG_HASH(MENU_ENUM_LABEL_CONTENT_SHOW_IMAGES,
|
||||
|
@ -2776,6 +2776,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY,
|
||||
"Show the recent history tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD,
|
||||
"Show the import content tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
"Show playlist tabs inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN,
|
||||
"Show startup screen in menu. This is automatically set to false after the program starts for the first time.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
||||
|
@ -1897,6 +1897,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_HISTORY,
|
||||
"Show History Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_ADD,
|
||||
"Show Import content Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_PLAYLISTS,
|
||||
"Show Playlist Tabs")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_FAVORITES,
|
||||
"Show Favorites Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_IMAGES,
|
||||
@ -3126,6 +3128,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY,
|
||||
"Show the recent history tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD,
|
||||
"Show the import content tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
"Show playlist tabs inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN,
|
||||
"Show startup screen in menu. This is automatically set to false after the program starts for the first time.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
||||
|
@ -1761,6 +1761,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_HISTORY,
|
||||
"Display History Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_ADD,
|
||||
"Display Import content Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_PLAYLISTS,
|
||||
"Display Playlist Tabs")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_IMAGES,
|
||||
"Display Image Tab")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_MUSIC,
|
||||
@ -2935,6 +2937,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY,
|
||||
"Show the recent history tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD,
|
||||
"Show the import content tab inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
"Show playlist tabs inside the main menu.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN,
|
||||
"Show startup screen in menu. This is automatically set to false after the program starts for the first time.")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
||||
|
@ -338,6 +338,7 @@ default_sublabel_macro(action_bind_sublabel_menu_settings_tab,
|
||||
default_sublabel_macro(action_bind_sublabel_menu_settings_tab_enable_password, MENU_ENUM_SUBLABEL_CONTENT_SHOW_SETTINGS_PASSWORD)
|
||||
default_sublabel_macro(action_bind_sublabel_menu_history_tab, MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY)
|
||||
default_sublabel_macro(action_bind_sublabel_menu_import_content_tab, MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD)
|
||||
default_sublabel_macro(action_bind_sublabel_menu_playlist_tabs, MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLISTS)
|
||||
default_sublabel_macro(action_bind_sublabel_main_menu_enable_settings, MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS)
|
||||
default_sublabel_macro(action_bind_sublabel_rgui_show_start_screen, MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN)
|
||||
default_sublabel_macro(action_bind_sublabel_menu_header_opacity, MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY)
|
||||
@ -699,6 +700,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_ADD:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_import_content_tab);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_PLAYLISTS:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_playlist_tabs);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_XMB_MAIN_MENU_ENABLE_SETTINGS:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_main_menu_enable_settings);
|
||||
break;
|
||||
|
@ -1990,7 +1990,7 @@ static void xmb_init_horizontal_list(xmb_handle_t *xmb)
|
||||
info.type_default = FILE_TYPE_PLAIN;
|
||||
info.enum_idx = MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST;
|
||||
|
||||
if (!string_is_empty(info.path))
|
||||
if (settings->bools.menu_content_show_playlists && !string_is_empty(info.path))
|
||||
{
|
||||
if (menu_displaylist_ctl(DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL, &info))
|
||||
{
|
||||
|
@ -5216,6 +5216,9 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
||||
MENU_ENUM_LABEL_CONTENT_SHOW_ADD,
|
||||
PARSE_ONLY_BOOL, false);
|
||||
#endif
|
||||
menu_displaylist_parse_settings_enum(menu, info,
|
||||
MENU_ENUM_LABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
PARSE_ONLY_BOOL, false);
|
||||
menu_displaylist_parse_settings_enum(menu, info,
|
||||
MENU_ENUM_LABEL_TIMEDATE_ENABLE,
|
||||
PARSE_ONLY_BOOL, false);
|
||||
|
@ -5724,6 +5724,21 @@ static bool setting_append_list(
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
||||
#endif
|
||||
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->bools.menu_content_show_playlists,
|
||||
MENU_ENUM_LABEL_CONTENT_SHOW_PLAYLISTS,
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_PLAYLISTS,
|
||||
content_show_playlists,
|
||||
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);
|
||||
|
||||
#ifdef HAVE_MATERIALUI
|
||||
if (string_is_equal(settings->arrays.menu_driver, "glui"))
|
||||
{
|
||||
|
@ -774,6 +774,7 @@ enum msg_hash_enums
|
||||
MENU_LABEL(CONTENT_SHOW_NETPLAY),
|
||||
MENU_LABEL(CONTENT_SHOW_HISTORY),
|
||||
MENU_LABEL(CONTENT_SHOW_ADD),
|
||||
MENU_LABEL(CONTENT_SHOW_PLAYLISTS),
|
||||
MENU_LABEL(XMB_RIBBON_ENABLE),
|
||||
MENU_LABEL(THUMBNAILS),
|
||||
MENU_LABEL(LEFT_THUMBNAILS),
|
||||
|
Loading…
x
Reference in New Issue
Block a user