@@ -4199,7 +4199,8 @@ static bool menu_history_in_main_menu(const char *menu_ident,
41994199{
42004200 return (!strcmp(menu_ident, "rgui"))
42014201 || (!strcmp(menu_ident, "glui") && !settings->bools.menu_materialui_show_nav_bar)
4202- || (!strcmp(menu_ident, "ozone") && !settings->bools.ozone_show_sidebar);
4202+ || (!strcmp(menu_ident, "ozone") && !settings->bools.ozone_show_sidebar)
4203+ || (!strcmp(menu_ident, "xmb") && !settings->bools.menu_xmb_show_horizontal_list);
42034204}
42044205
42054206static unsigned menu_displaylist_parse_playlists(
@@ -4233,6 +4234,8 @@ static unsigned menu_displaylist_parse_playlists(
42334234 const char *menu_ident = menu_driver_ident();
42344235 bool show_add_content = (settings->uints.menu_content_show_add_entry ==
42354236 MENU_ADD_CONTENT_ENTRY_DISPLAY_PLAYLISTS_TAB);
4237+ bool show_netplay = (settings->uints.menu_content_show_netplay ==
4238+ MENU_ADD_CONTENT_ENTRY_DISPLAY_PLAYLISTS_TAB);
42364239 bool show_history = !menu_history_in_main_menu(menu_ident, settings);
42374240
42384241 if (show_history)
@@ -4303,6 +4306,14 @@ static unsigned menu_displaylist_parse_playlists(
43034306 count++;
43044307#endif
43054308
4309+ if (show_netplay)
4310+ if (menu_entries_append(info_list,
4311+ msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY),
4312+ MENU_ENUM_LABEL_NETPLAY_STR,
4313+ MENU_ENUM_LABEL_NETPLAY,
4314+ MENU_SETTING_ACTION, 0, 0, NULL))
4315+ count++;
4316+
43064317 if (show_add_content)
43074318 if (menu_entries_append(info_list,
43084319 msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ADD_CONTENT_LIST),
@@ -10477,7 +10488,6 @@ unsigned menu_displaylist_build_list(
1047710488#ifdef HAVE_LAKKA
1047810489 {MENU_ENUM_LABEL_MENU_SHOW_EJECT_DISC, PARSE_ONLY_BOOL, true },
1047910490#endif
10480- {MENU_ENUM_LABEL_CONTENT_SHOW_ADD_ENTRY, PARSE_ONLY_UINT, true },
1048110491 {MENU_ENUM_LABEL_CONTENT_SHOW_PLAYLISTS, PARSE_ONLY_BOOL, true },
1048210492 {MENU_ENUM_LABEL_CONTENT_SHOW_PLAYLIST_TABS, PARSE_ONLY_BOOL, true },
1048310493 {MENU_ENUM_LABEL_CONTENT_SHOW_HISTORY, PARSE_ONLY_BOOL, true },
@@ -10486,13 +10496,14 @@ unsigned menu_displaylist_build_list(
1048610496 {MENU_ENUM_LABEL_CONTENT_SHOW_IMAGES, PARSE_ONLY_BOOL, true },
1048710497 {MENU_ENUM_LABEL_CONTENT_SHOW_MUSIC, PARSE_ONLY_BOOL, true },
1048810498 {MENU_ENUM_LABEL_CONTENT_SHOW_VIDEO, PARSE_ONLY_BOOL, true },
10499+ {MENU_ENUM_LABEL_CONTENT_SHOW_NETPLAY, PARSE_ONLY_UINT, true },
10500+ {MENU_ENUM_LABEL_CONTENT_SHOW_ADD_ENTRY, PARSE_ONLY_UINT, true },
1048910501#if defined(HAVE_DYNAMIC)
1049010502 {MENU_ENUM_LABEL_CONTENT_SHOW_CONTENTLESS_CORES, PARSE_ONLY_UINT, true },
1049110503#endif
1049210504 {MENU_ENUM_LABEL_CONTENT_SHOW_EXPLORE, PARSE_ONLY_BOOL, true },
1049310505 {MENU_ENUM_LABEL_CONTENT_SHOW_SETTINGS, PARSE_ONLY_BOOL, true },
1049410506 {MENU_ENUM_LABEL_CONTENT_SHOW_SETTINGS_PASSWORD, PARSE_ONLY_STRING, true},
10495- {MENU_ENUM_LABEL_CONTENT_SHOW_NETPLAY, PARSE_ONLY_BOOL, true },
1049610507#ifdef HAVE_ONLINE_UPDATER
1049710508 {MENU_ENUM_LABEL_MENU_SHOW_ONLINE_UPDATER, PARSE_ONLY_BOOL, true },
1049810509 {MENU_ENUM_LABEL_MENU_SHOW_CORE_UPDATER, PARSE_ONLY_BOOL, true },
@@ -12097,6 +12108,7 @@ unsigned menu_displaylist_build_list(
1209712108 {MENU_ENUM_LABEL_MENU_FONT_COLOR_RED, PARSE_ONLY_UINT, true},
1209812109 {MENU_ENUM_LABEL_MENU_FONT_COLOR_GREEN, PARSE_ONLY_UINT, true},
1209912110 {MENU_ENUM_LABEL_MENU_FONT_COLOR_BLUE, PARSE_ONLY_UINT, true},
12111+ {MENU_ENUM_LABEL_MENU_XMB_SHOW_HORIZONTAL_LIST, PARSE_ONLY_BOOL, true},
1210012112 {MENU_ENUM_LABEL_MENU_XMB_SHOW_TITLE_HEADER, PARSE_ONLY_BOOL, true},
1210112113 {MENU_ENUM_LABEL_MENU_XMB_TITLE_MARGIN, PARSE_ONLY_INT, true},
1210212114 {MENU_ENUM_LABEL_MENU_XMB_TITLE_MARGIN_HORIZONTAL_OFFSET, PARSE_ONLY_INT, true},
@@ -15411,6 +15423,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
1541115423 const char *menu_ident = menu_driver_ident();
1541215424 uint32_t flags = runloop_get_flags();
1541315425 bool show_playlists = settings->bools.menu_content_show_playlists;
15426+ bool show_netplay = (settings->uints.menu_content_show_netplay ==
15427+ MENU_ADD_CONTENT_ENTRY_DISPLAY_MAIN_TAB);
1541415428 bool show_add_content = (settings->uints.menu_content_show_add_entry ==
1541515429 MENU_ADD_CONTENT_ENTRY_DISPLAY_MAIN_TAB)
1541615430 && !settings->bools.kiosk_mode_enable;
@@ -15577,7 +15591,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
1557715591 count++;
1557815592
1557915593#ifdef HAVE_NETWORKING
15580- if (settings->bools.menu_content_show_netplay )
15594+ if (show_netplay )
1558115595 if (MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM(info->list,
1558215596 MENU_ENUM_LABEL_NETPLAY,
1558315597 PARSE_ACTION, false) == 0)
0 commit comments