Default Import Content back to playlist sidebar/tabs
This commit is contained in:
parent
a1a50afc9e
commit
cfa839f5b6
|
@ -811,7 +811,7 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#define DEFAULT_MENU_CONTENT_SHOW_ADD_ENTRY MENU_ADD_CONTENT_ENTRY_DISPLAY_MAIN_TAB
|
||||
#define DEFAULT_MENU_CONTENT_SHOW_ADD_ENTRY MENU_ADD_CONTENT_ENTRY_DISPLAY_PLAYLISTS_TAB
|
||||
|
||||
#define DEFAULT_CONTENT_SHOW_PLAYLISTS true
|
||||
#define DEFAULT_CONTENT_SHOW_PLAYLIST_TABS true
|
||||
|
|
|
@ -826,7 +826,6 @@ typedef struct settings
|
|||
bool menu_content_show_video;
|
||||
bool menu_content_show_netplay;
|
||||
bool menu_content_show_history;
|
||||
bool menu_content_show_add;
|
||||
bool menu_content_show_playlists;
|
||||
bool menu_content_show_playlist_tabs;
|
||||
bool menu_content_show_explore;
|
||||
|
|
|
@ -6429,7 +6429,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_SETTINGS,
|
||||
"Show the 'Settings' menu. (Restart required on Ozone/XMB)"
|
||||
"Show the 'Settings' menu."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_SETTINGS_PASSWORD,
|
||||
|
@ -6445,7 +6445,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_FAVORITES,
|
||||
"Show the 'Favorites' menu. (Restart required on Ozone/XMB)"
|
||||
"Show the 'Favorites' menu."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_FAVORITES_FIRST,
|
||||
|
@ -6453,7 +6453,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_FAVORITES_FIRST,
|
||||
"Show 'Favorites' before 'History'. (Restart required on Ozone/XMB)"
|
||||
"Show 'Favorites' before 'History'."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_IMAGES,
|
||||
|
@ -6461,7 +6461,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_IMAGES,
|
||||
"Show the 'Images' menu. (Restart required on Ozone/XMB)"
|
||||
"Show the 'Images' menu."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_MUSIC,
|
||||
|
@ -6469,7 +6469,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_MUSIC,
|
||||
"Show the 'Music' menu. (Restart required on Ozone/XMB)"
|
||||
"Show the 'Music' menu."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_VIDEO,
|
||||
|
@ -6477,7 +6477,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_VIDEO,
|
||||
"Show the 'Videos' menu. (Restart required on Ozone/XMB)"
|
||||
"Show the 'Videos' menu."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_NETPLAY,
|
||||
|
@ -6485,7 +6485,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_NETPLAY,
|
||||
"Show the 'Netplay' menu. (Restart required on Ozone/XMB)"
|
||||
"Show the 'Netplay' menu."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_HISTORY,
|
||||
|
@ -6493,7 +6493,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_HISTORY,
|
||||
"Show the recent history menu. (Restart required on Ozone/XMB)"
|
||||
"Show the recent history menu."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_ADD_ENTRY,
|
||||
|
@ -6501,7 +6501,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_ADD_ENTRY,
|
||||
"Show the 'Import Content' entry inside the main menu or playlists submenu."
|
||||
"Show the 'Import Content' entry inside the Main Menu or Playlists."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_MENU_ADD_CONTENT_ENTRY_DISPLAY_MAIN_TAB,
|
||||
|
@ -6525,7 +6525,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_PLAYLIST_TABS,
|
||||
"Show the playlist tabs. Does not affect RGUI. Navbar must be enabled in GLUI. (Restart required on Ozone/XMB)"
|
||||
"Show the playlist tabs. Does not affect RGUI. Navbar must be enabled in GLUI."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_EXPLORE,
|
||||
|
@ -6533,7 +6533,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_EXPLORE,
|
||||
"Show the content explorer option. (Restart required on Ozone/XMB)"
|
||||
"Show the content explorer option."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_CONTENTLESS_CORES,
|
||||
|
@ -6541,7 +6541,7 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CONTENT_SHOW_CONTENTLESS_CORES,
|
||||
"Specify the type of core (if any) to show in the 'Contentless Cores' menu. When set to 'Custom', individual core visibility may be toggled via the 'Manage Cores' menu. (Restart required on Ozone/XMB)"
|
||||
"Specify the type of core (if any) to show in the 'Contentless Cores' menu. When set to 'Custom', individual core visibility may be toggled via the 'Manage Cores' menu."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SHOW_CONTENTLESS_CORES_ALL,
|
||||
|
|
|
@ -2182,6 +2182,8 @@ static uintptr_t ozone_entries_icon_get_texture(
|
|||
case MENU_ENUM_LABEL_SETTINGS_SHOW_USER:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_USER];
|
||||
case MENU_ENUM_LABEL_ADD_CONTENT_LIST:
|
||||
if (ozone->depth > 1)
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_ADD];
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MENU_ADD];
|
||||
case MENU_ENUM_LABEL_DIRECTORY_SETTINGS:
|
||||
case MENU_ENUM_LABEL_SETTINGS_SHOW_DIRECTORY:
|
||||
|
@ -5120,6 +5122,68 @@ static void ozone_refresh_horizontal_list(ozone_handle_t *ozone,
|
|||
ozone_context_reset_horizontal_list(ozone);
|
||||
}
|
||||
|
||||
static void ozone_refresh_system_tabs_list(ozone_handle_t * ozone)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
ozone->system_tab_end = 0;
|
||||
ozone->tabs[ozone->system_tab_end] = OZONE_SYSTEM_TAB_MAIN;
|
||||
|
||||
if ( settings->bools.menu_content_show_settings
|
||||
&& !settings->bools.kiosk_mode_enable)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_SETTINGS;
|
||||
|
||||
if (settings->bools.menu_content_show_favorites_first)
|
||||
{
|
||||
if (settings->bools.menu_content_show_favorites)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_FAVORITES;
|
||||
if (settings->bools.menu_content_show_history)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_HISTORY;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (settings->bools.menu_content_show_history)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_HISTORY;
|
||||
if (settings->bools.menu_content_show_favorites)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_FAVORITES;
|
||||
}
|
||||
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
if (settings->bools.menu_content_show_images)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_IMAGES;
|
||||
#endif
|
||||
|
||||
if (settings->bools.menu_content_show_music)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_MUSIC;
|
||||
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
if (settings->bools.menu_content_show_video)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_VIDEO;
|
||||
#endif
|
||||
|
||||
#if 0 /* Move Netplay to Main Menu */
|
||||
#ifdef HAVE_NETWORKING
|
||||
if (settings->bools.menu_content_show_netplay)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_NETPLAY;
|
||||
#endif
|
||||
#endif /* 0 */
|
||||
|
||||
if ( settings->uints.menu_content_show_add_entry == MENU_ADD_CONTENT_ENTRY_DISPLAY_PLAYLISTS_TAB
|
||||
&& !settings->bools.kiosk_mode_enable)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_ADD;
|
||||
|
||||
#if defined(HAVE_DYNAMIC)
|
||||
if (settings->uints.menu_content_show_contentless_cores !=
|
||||
MENU_CONTENTLESS_CORES_DISPLAY_NONE)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_CONTENTLESS_CORES;
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LIBRETRODB)
|
||||
if (settings->bools.menu_content_show_explore)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_EXPLORE;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int ozone_get_entries_padding_old_list(ozone_handle_t* ozone)
|
||||
{
|
||||
if (ozone->depth == 2) /* false = left to right */
|
||||
|
@ -8186,7 +8250,7 @@ static enum menu_action ozone_parse_menu_entry_action(
|
|||
|
||||
if (list_selection < 0)
|
||||
{
|
||||
enum msg_hash_enums value_idx = ozone_system_tabs_label[tab_selection];
|
||||
enum msg_hash_enums value_idx = ozone_system_tabs_label[ozone->tabs[tab_selection]];
|
||||
const char *tab_title;
|
||||
|
||||
switch (value_idx)
|
||||
|
@ -8996,63 +9060,7 @@ static void *ozone_init(void **userdata, bool video_is_threaded)
|
|||
gfx_thumbnail_set_fade_missing(false);
|
||||
|
||||
ozone_sidebar_update_collapse(ozone, settings->bools.ozone_collapse_sidebar, false);
|
||||
|
||||
ozone->system_tab_end = 0;
|
||||
ozone->tabs[ozone->system_tab_end] = OZONE_SYSTEM_TAB_MAIN;
|
||||
|
||||
if ( settings->bools.menu_content_show_settings
|
||||
&& !settings->bools.kiosk_mode_enable)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_SETTINGS;
|
||||
|
||||
if (settings->bools.menu_content_show_favorites_first)
|
||||
{
|
||||
if (settings->bools.menu_content_show_favorites)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_FAVORITES;
|
||||
if (settings->bools.menu_content_show_history)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_HISTORY;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (settings->bools.menu_content_show_history)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_HISTORY;
|
||||
if (settings->bools.menu_content_show_favorites)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_FAVORITES;
|
||||
}
|
||||
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
if (settings->bools.menu_content_show_images)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_IMAGES;
|
||||
#endif
|
||||
|
||||
if (settings->bools.menu_content_show_music)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_MUSIC;
|
||||
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
if (settings->bools.menu_content_show_video)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_VIDEO;
|
||||
#endif
|
||||
|
||||
#if 0 /* Move Netplay and Import Content to Main Menu */
|
||||
#ifdef HAVE_NETWORKING
|
||||
if (settings->bools.menu_content_show_netplay)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_NETPLAY;
|
||||
#endif
|
||||
|
||||
if ( settings->bools.menu_content_show_add
|
||||
&& !settings->bools.kiosk_mode_enable)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_ADD;
|
||||
#endif /* 0 */
|
||||
|
||||
#if defined(HAVE_DYNAMIC)
|
||||
if (settings->uints.menu_content_show_contentless_cores !=
|
||||
MENU_CONTENTLESS_CORES_DISPLAY_NONE)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_CONTENTLESS_CORES;
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LIBRETRODB)
|
||||
if (settings->bools.menu_content_show_explore)
|
||||
ozone->tabs[++ozone->system_tab_end] = OZONE_SYSTEM_TAB_EXPLORE;
|
||||
#endif
|
||||
ozone_refresh_system_tabs_list(ozone);
|
||||
|
||||
for (i = 0; i < OZONE_TAB_MAX_LENGTH; i++)
|
||||
ozone->tab_selection[i] = 0;
|
||||
|
@ -12713,8 +12721,7 @@ static int ozone_environ_cb(enum menu_environ_cb type, void *data, void *userdat
|
|||
ozone->flags &= ~OZONE_FLAG_SHOW_CURSOR;
|
||||
break;
|
||||
case MENU_ENVIRON_RESET_HORIZONTAL_LIST:
|
||||
if (!ozone)
|
||||
return -1;
|
||||
ozone_refresh_system_tabs_list(ozone);
|
||||
ozone_refresh_horizontal_list(ozone, config_get_ptr());
|
||||
break;
|
||||
case MENU_ENVIRON_ENABLE_SCREENSAVER:
|
||||
|
|
|
@ -2886,6 +2886,68 @@ static void xmb_refresh_horizontal_list(xmb_handle_t *xmb)
|
|||
xmb_context_reset_horizontal_list(xmb);
|
||||
}
|
||||
|
||||
static void xmb_refresh_system_tabs_list(xmb_handle_t *xmb)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
xmb->system_tab_end = 0;
|
||||
xmb->tabs[xmb->system_tab_end] = XMB_SYSTEM_TAB_MAIN;
|
||||
|
||||
if ( settings->bools.menu_content_show_settings
|
||||
&& !settings->bools.kiosk_mode_enable)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_SETTINGS;
|
||||
|
||||
if (settings->bools.menu_content_show_favorites_first)
|
||||
{
|
||||
if (settings->bools.menu_content_show_favorites)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_FAVORITES;
|
||||
if (settings->bools.menu_content_show_history)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_HISTORY;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (settings->bools.menu_content_show_history)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_HISTORY;
|
||||
if (settings->bools.menu_content_show_favorites)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_FAVORITES;
|
||||
}
|
||||
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
if (settings->bools.menu_content_show_images)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_IMAGES;
|
||||
#endif
|
||||
|
||||
if (settings->bools.menu_content_show_music)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_MUSIC;
|
||||
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
if (settings->bools.menu_content_show_video)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_VIDEO;
|
||||
#endif
|
||||
|
||||
#if 0 /* Move Netplay to Main Menu */
|
||||
#ifdef HAVE_NETWORKING
|
||||
if (settings->bools.menu_content_show_netplay)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_NETPLAY;
|
||||
#endif
|
||||
#endif /* 0 */
|
||||
|
||||
if ( settings->uints.menu_content_show_add_entry == MENU_ADD_CONTENT_ENTRY_DISPLAY_PLAYLISTS_TAB
|
||||
&& !settings->bools.kiosk_mode_enable)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_ADD;
|
||||
|
||||
#if defined(HAVE_DYNAMIC)
|
||||
if ( settings->uints.menu_content_show_contentless_cores
|
||||
!= MENU_CONTENTLESS_CORES_DISPLAY_NONE)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_CONTENTLESS_CORES;
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LIBRETRODB)
|
||||
if (settings->bools.menu_content_show_explore)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_EXPLORE;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int xmb_environ(enum menu_environ_cb type, void *data, void *userdata)
|
||||
{
|
||||
xmb_handle_t *xmb = (xmb_handle_t*)userdata;
|
||||
|
@ -2902,6 +2964,7 @@ static int xmb_environ(enum menu_environ_cb type, void *data, void *userdata)
|
|||
xmb->show_mouse = false;
|
||||
break;
|
||||
case MENU_ENVIRON_RESET_HORIZONTAL_LIST:
|
||||
xmb_refresh_system_tabs_list(xmb);
|
||||
xmb_refresh_horizontal_list(xmb);
|
||||
break;
|
||||
case MENU_ENVIRON_ENABLE_SCREENSAVER:
|
||||
|
@ -3363,6 +3426,8 @@ static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb,
|
|||
case MENU_ENUM_LABEL_DOWNLOAD_CORE_CONTENT_DIRS:
|
||||
return xmb->textures.list[XMB_TEXTURE_FOLDER];
|
||||
case MENU_ENUM_LABEL_ADD_CONTENT_LIST:
|
||||
if (xmb->depth > 1)
|
||||
return xmb->textures.list[XMB_TEXTURE_ADD];
|
||||
return xmb->textures.list[XMB_TEXTURE_MENU_ADD];
|
||||
case MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR:
|
||||
case MENU_ENUM_LABEL_VALUE_CONTENTLESS_CORES_TAB:
|
||||
|
@ -8659,66 +8724,11 @@ static void *xmb_init(void **userdata, bool video_is_threaded)
|
|||
xmb->old_depth = 1;
|
||||
xmb->alpha = 1.0f;
|
||||
|
||||
xmb->system_tab_end = 0;
|
||||
xmb->tabs[xmb->system_tab_end] = XMB_SYSTEM_TAB_MAIN;
|
||||
xmb_refresh_system_tabs_list(xmb);
|
||||
|
||||
for (i = 0; i < XMB_TAB_MAX_LENGTH; i++)
|
||||
xmb->tab_selection[i] = 0;
|
||||
|
||||
if ( settings->bools.menu_content_show_settings
|
||||
&& !settings->bools.kiosk_mode_enable)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_SETTINGS;
|
||||
|
||||
if (settings->bools.menu_content_show_favorites_first)
|
||||
{
|
||||
if (settings->bools.menu_content_show_favorites)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_FAVORITES;
|
||||
if (settings->bools.menu_content_show_history)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_HISTORY;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (settings->bools.menu_content_show_history)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_HISTORY;
|
||||
if (settings->bools.menu_content_show_favorites)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_FAVORITES;
|
||||
}
|
||||
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
if (settings->bools.menu_content_show_images)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_IMAGES;
|
||||
#endif
|
||||
|
||||
if (settings->bools.menu_content_show_music)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_MUSIC;
|
||||
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
if (settings->bools.menu_content_show_video)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_VIDEO;
|
||||
#endif
|
||||
|
||||
#if 0 /* Move Netplay and Import Content to Main Menu */
|
||||
#ifdef HAVE_NETWORKING
|
||||
if (settings->bools.menu_content_show_netplay)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_NETPLAY;
|
||||
#endif
|
||||
|
||||
if ( settings->bools.menu_content_show_add
|
||||
&& !settings->bools.kiosk_mode_enable)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_ADD;
|
||||
#endif /* 0 */
|
||||
|
||||
#if defined(HAVE_DYNAMIC)
|
||||
if ( settings->uints.menu_content_show_contentless_cores
|
||||
!= MENU_CONTENTLESS_CORES_DISPLAY_NONE)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_CONTENTLESS_CORES;
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LIBRETRODB)
|
||||
if (settings->bools.menu_content_show_explore)
|
||||
xmb->tabs[++xmb->system_tab_end] = XMB_SYSTEM_TAB_EXPLORE;
|
||||
#endif
|
||||
|
||||
menu_st->flags &= ~MENU_ST_FLAG_PREVENT_POPULATE;
|
||||
|
||||
/* TODO/FIXME - we don't use framebuffer at all
|
||||
|
|
|
@ -166,9 +166,7 @@ enum menu_timedate_date_separator_type
|
|||
MENU_TIMEDATE_DATE_SEPARATOR_LAST
|
||||
};
|
||||
|
||||
/* Specifies location of the 'Scan Content' menu
|
||||
* entry when using menu drivers without a
|
||||
* dedicated 'Import Content' (horizontal) tab */
|
||||
/* Specifies location of the 'Import Content' menu */
|
||||
enum menu_add_content_entry_display_type
|
||||
{
|
||||
MENU_ADD_CONTENT_ENTRY_DISPLAY_HIDDEN = 0,
|
||||
|
|
|
@ -8848,6 +8848,24 @@ static void general_write_handler(rarch_setting_t *setting)
|
|||
}
|
||||
break;
|
||||
#endif
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_SETTINGS:
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_FAVORITES:
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_FAVORITES_FIRST:
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_HISTORY:
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_IMAGES:
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_MUSIC:
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_VIDEO:
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_ADD_ENTRY:
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_PLAYLIST_TABS:
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_EXPLORE:
|
||||
case MENU_ENUM_LABEL_CONTENT_SHOW_CONTENTLESS_CORES:
|
||||
{
|
||||
struct menu_state *menu_st = menu_state_get_ptr();
|
||||
if (menu_st->driver_ctx->environ_cb)
|
||||
menu_st->driver_ctx->environ_cb(MENU_ENVIRON_RESET_HORIZONTAL_LIST,
|
||||
NULL, menu_st->userdata);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
/* Special cases */
|
||||
|
||||
|
|
Loading…
Reference in New Issue