Add media history playlists to playlist manager (#17945)
This commit is contained in:
parent
d2a824c1a7
commit
1c0f945c21
|
@ -65,13 +65,16 @@ static int action_bind_label_playlist_collection_entry(
|
|||
if (string_is_equal_noncase(path_get_extension(playlist_file),
|
||||
"lpl"))
|
||||
{
|
||||
/* Handle content history */
|
||||
if (string_is_equal(playlist_file, FILE_PATH_CONTENT_HISTORY))
|
||||
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HISTORY_TAB), len);
|
||||
/* Handle favourites */
|
||||
else if (string_is_equal(playlist_file, FILE_PATH_CONTENT_FAVORITES))
|
||||
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_FAVORITES_TAB), len);
|
||||
/* Handle collection playlists */
|
||||
else if (string_is_equal(playlist_file, FILE_PATH_CONTENT_IMAGE_HISTORY))
|
||||
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_IMAGES_TAB), len);
|
||||
else if (string_is_equal(playlist_file, FILE_PATH_CONTENT_MUSIC_HISTORY))
|
||||
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MUSIC_TAB), len);
|
||||
else if (string_is_equal(playlist_file, FILE_PATH_CONTENT_VIDEO_HISTORY))
|
||||
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_TAB), len);
|
||||
else
|
||||
fill_pathname(s, playlist_file, "", len);
|
||||
}
|
||||
|
|
|
@ -397,13 +397,16 @@ static int action_get_title_deferred_playlist_list(const char *path, const char
|
|||
if (string_is_equal_noncase(path_get_extension(playlist_file),
|
||||
"lpl"))
|
||||
{
|
||||
/* Handle content history */
|
||||
if (string_is_equal(playlist_file, FILE_PATH_CONTENT_HISTORY))
|
||||
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HISTORY_TAB), len);
|
||||
/* Handle favourites */
|
||||
else if (string_is_equal(playlist_file, FILE_PATH_CONTENT_FAVORITES))
|
||||
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_FAVORITES_TAB), len);
|
||||
/* Handle collection playlists */
|
||||
else if (string_is_equal(playlist_file, FILE_PATH_CONTENT_IMAGE_HISTORY))
|
||||
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_IMAGES_TAB), len);
|
||||
else if (string_is_equal(playlist_file, FILE_PATH_CONTENT_MUSIC_HISTORY))
|
||||
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MUSIC_TAB), len);
|
||||
else if (string_is_equal(playlist_file, FILE_PATH_CONTENT_VIDEO_HISTORY))
|
||||
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_TAB), len);
|
||||
else
|
||||
fill_pathname(s, playlist_file, "", len);
|
||||
}
|
||||
|
|
|
@ -207,10 +207,10 @@ enum
|
|||
MUI_TEXTURE_KEY_HOVER,
|
||||
MUI_TEXTURE_FOLDER,
|
||||
MUI_TEXTURE_PARENT_DIRECTORY,
|
||||
MUI_TEXTURE_IMAGE,
|
||||
MUI_TEXTURE_ARCHIVE,
|
||||
MUI_TEXTURE_VIDEO,
|
||||
MUI_TEXTURE_IMAGE,
|
||||
MUI_TEXTURE_MUSIC,
|
||||
MUI_TEXTURE_VIDEO,
|
||||
MUI_TEXTURE_QUIT,
|
||||
MUI_TEXTURE_HELP,
|
||||
MUI_TEXTURE_HISTORY,
|
||||
|
@ -2095,10 +2095,10 @@ static const char *materialui_texture_path(unsigned id)
|
|||
return "parent_directory.png";
|
||||
case MUI_TEXTURE_IMAGE:
|
||||
return "image.png";
|
||||
case MUI_TEXTURE_VIDEO:
|
||||
return "video.png";
|
||||
case MUI_TEXTURE_MUSIC:
|
||||
return "music.png";
|
||||
case MUI_TEXTURE_VIDEO:
|
||||
return "video.png";
|
||||
case MUI_TEXTURE_ARCHIVE:
|
||||
return "archive.png";
|
||||
case MUI_TEXTURE_QUIT:
|
||||
|
@ -12049,7 +12049,7 @@ static void materialui_list_insert(void *userdata,
|
|||
/* Playlist manager icons */
|
||||
else if (string_is_equal(fullpath, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LIST)))
|
||||
{
|
||||
size_t path_siz = strlen(path);
|
||||
size_t path_size = strlen(path);
|
||||
/* Set defaults */
|
||||
node->icon_texture_index = MUI_TEXTURE_PLAYLIST;
|
||||
node->icon_type = MUI_ICON_TYPE_INTERNAL;
|
||||
|
@ -12057,13 +12057,20 @@ static void materialui_list_insert(void *userdata,
|
|||
&& !string_is_empty(path))
|
||||
{
|
||||
if (string_ends_with_size(path, "_history.lpl",
|
||||
path_siz, STRLEN_CONST("_history.lpl")))
|
||||
path_size, STRLEN_CONST("_history.lpl")))
|
||||
{
|
||||
node->icon_texture_index = MUI_TEXTURE_HISTORY;
|
||||
node->icon_type = MUI_ICON_TYPE_INTERNAL;
|
||||
|
||||
if (strstr(path, "image_history"))
|
||||
node->icon_texture_index = MUI_TEXTURE_IMAGE;
|
||||
else if (strstr(path, "music_history"))
|
||||
node->icon_texture_index = MUI_TEXTURE_MUSIC;
|
||||
else if (strstr(path, "video_history"))
|
||||
node->icon_texture_index = MUI_TEXTURE_VIDEO;
|
||||
}
|
||||
else if (string_ends_with_size(path, "_favorites.lpl",
|
||||
path_siz, STRLEN_CONST("_favorites.lpl")))
|
||||
path_size, STRLEN_CONST("_favorites.lpl")))
|
||||
{
|
||||
node->icon_texture_index = MUI_TEXTURE_ADD_TO_FAVORITES;
|
||||
node->icon_type = MUI_ICON_TYPE_INTERNAL;
|
||||
|
|
|
@ -137,13 +137,13 @@ enum
|
|||
OZONE_SYSTEM_TAB_SETTINGS,
|
||||
OZONE_SYSTEM_TAB_HISTORY,
|
||||
OZONE_SYSTEM_TAB_FAVORITES,
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
OZONE_SYSTEM_TAB_IMAGES,
|
||||
#endif
|
||||
OZONE_SYSTEM_TAB_MUSIC,
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
OZONE_SYSTEM_TAB_VIDEO,
|
||||
#endif
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
OZONE_SYSTEM_TAB_IMAGES,
|
||||
#endif
|
||||
#ifdef HAVE_NETWORKING
|
||||
OZONE_SYSTEM_TAB_NETPLAY,
|
||||
#endif
|
||||
|
@ -181,9 +181,9 @@ enum OZONE_TAB_TEXTURES
|
|||
OZONE_TAB_TEXTURE_SETTINGS,
|
||||
OZONE_TAB_TEXTURE_HISTORY,
|
||||
OZONE_TAB_TEXTURE_FAVORITES,
|
||||
OZONE_TAB_TEXTURE_IMAGE,
|
||||
OZONE_TAB_TEXTURE_MUSIC,
|
||||
OZONE_TAB_TEXTURE_VIDEO,
|
||||
OZONE_TAB_TEXTURE_IMAGE,
|
||||
OZONE_TAB_TEXTURE_NETWORK,
|
||||
OZONE_TAB_TEXTURE_SCAN_CONTENT,
|
||||
OZONE_TAB_TEXTURE_CONTENTLESS_CORES,
|
||||
|
@ -198,6 +198,9 @@ enum
|
|||
OZONE_ENTRIES_ICONS_TEXTURE_SETTINGS,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_HISTORY,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_FAVORITES,
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_IMAGES,
|
||||
#endif
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_MUSICS,
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_MOVIES,
|
||||
|
@ -207,9 +210,6 @@ enum
|
|||
OZONE_ENTRIES_ICONS_TEXTURE_ROOM,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_ROOM_LAN,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_ROOM_RELAY,
|
||||
#endif
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_IMAGES,
|
||||
#endif
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_SETTING,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_SUBSETTING,
|
||||
|
@ -240,8 +240,8 @@ enum
|
|||
OZONE_ENTRIES_ICONS_TEXTURE_ZIP,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_FAVORITE,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_ADD_FAVORITE,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_MUSIC,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_IMAGE,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_MUSIC,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_MOVIE,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_CORE,
|
||||
OZONE_ENTRIES_ICONS_TEXTURE_RDB,
|
||||
|
@ -1920,12 +1920,12 @@ static uintptr_t ozone_entries_icon_get_texture(
|
|||
case MENU_ENUM_LABEL_GOTO_IMAGES:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_IMAGES];
|
||||
#endif
|
||||
case MENU_ENUM_LABEL_GOTO_MUSIC:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MUSICS];
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
case MENU_ENUM_LABEL_GOTO_VIDEO:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MOVIES];
|
||||
#endif
|
||||
case MENU_ENUM_LABEL_GOTO_MUSIC:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MUSICS];
|
||||
case MENU_ENUM_LABEL_GOTO_EXPLORE:
|
||||
if (!string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_GOTO_EXPLORE)))
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_CURSOR];
|
||||
|
@ -2313,19 +2313,19 @@ static uintptr_t ozone_entries_icon_get_texture(
|
|||
switch (ozone->tabs[ozone->categories_selection_ptr])
|
||||
{
|
||||
case OZONE_SYSTEM_TAB_MAIN:
|
||||
if (string_is_equal(ozone->title, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MUSIC_TAB)))
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MUSIC];
|
||||
else if (string_is_equal(ozone->title, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_IMAGES_TAB)))
|
||||
if (string_is_equal(ozone->title, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_IMAGES_TAB)))
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_IMAGE];
|
||||
else if (string_is_equal(ozone->title, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MUSIC_TAB)))
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MUSIC];
|
||||
else if (string_is_equal(ozone->title, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_TAB)))
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MOVIE];
|
||||
break;
|
||||
case OZONE_SYSTEM_TAB_MUSIC:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MUSIC];
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
case OZONE_SYSTEM_TAB_IMAGES:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_IMAGE];
|
||||
#endif
|
||||
case OZONE_SYSTEM_TAB_MUSIC:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MUSIC];
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
case OZONE_SYSTEM_TAB_VIDEO:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MOVIE];
|
||||
|
@ -2339,11 +2339,11 @@ static uintptr_t ozone_entries_icon_get_texture(
|
|||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_SHADER_OPTIONS];
|
||||
case FILE_TYPE_CARCHIVE:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_ZIP];
|
||||
case FILE_TYPE_MUSIC:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MUSIC];
|
||||
case FILE_TYPE_IMAGE:
|
||||
case FILE_TYPE_IMAGEVIEWER:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_IMAGE];
|
||||
case FILE_TYPE_MUSIC:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MUSIC];
|
||||
case FILE_TYPE_MOVIE:
|
||||
return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_MOVIE];
|
||||
case FILE_TYPE_CORE:
|
||||
|
@ -2603,15 +2603,15 @@ static const char *ozone_entries_icon_texture_path(unsigned id)
|
|||
return "favorites.png";
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_ADD_FAVORITE:
|
||||
return "add-favorite.png";
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_IMAGES:
|
||||
return "images.png";
|
||||
#endif
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_MUSICS:
|
||||
return "musics.png";
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_MOVIES:
|
||||
return "movies.png";
|
||||
#endif
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_IMAGES:
|
||||
return "images.png";
|
||||
#endif
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_SETTING:
|
||||
return "setting.png";
|
||||
|
@ -2683,12 +2683,12 @@ static const char *ozone_entries_icon_texture_path(unsigned id)
|
|||
return "folder.png";
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_ZIP:
|
||||
return "zip.png";
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_MUSIC:
|
||||
return "music.png";
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_FAVORITE:
|
||||
return "favorites-content.png";
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_IMAGE:
|
||||
return "image.png";
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_MUSIC:
|
||||
return "music.png";
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_MOVIE:
|
||||
return "movie.png";
|
||||
case OZONE_ENTRIES_ICONS_TEXTURE_CORE:
|
||||
|
@ -3291,13 +3291,13 @@ static void ozone_draw_sidebar(
|
|||
MENU_ENUM_LABEL_VALUE_SETTINGS_TAB,
|
||||
MENU_ENUM_LABEL_VALUE_HISTORY_TAB,
|
||||
MENU_ENUM_LABEL_VALUE_FAVORITES_TAB,
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
MENU_ENUM_LABEL_VALUE_IMAGES_TAB,
|
||||
#endif
|
||||
MENU_ENUM_LABEL_VALUE_MUSIC_TAB,
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
MENU_ENUM_LABEL_VALUE_VIDEO_TAB,
|
||||
#endif
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
MENU_ENUM_LABEL_VALUE_IMAGES_TAB,
|
||||
#endif
|
||||
#ifdef HAVE_NETWORKING
|
||||
MENU_ENUM_LABEL_VALUE_NETPLAY_TAB,
|
||||
#endif
|
||||
|
@ -3312,13 +3312,13 @@ static void ozone_draw_sidebar(
|
|||
OZONE_TAB_TEXTURE_SETTINGS,
|
||||
OZONE_TAB_TEXTURE_HISTORY,
|
||||
OZONE_TAB_TEXTURE_FAVORITES,
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
OZONE_TAB_TEXTURE_IMAGE,
|
||||
#endif
|
||||
OZONE_TAB_TEXTURE_MUSIC,
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
OZONE_TAB_TEXTURE_VIDEO,
|
||||
#endif
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
OZONE_TAB_TEXTURE_IMAGE,
|
||||
#endif
|
||||
#ifdef HAVE_NETWORKING
|
||||
OZONE_TAB_TEXTURE_NETWORK,
|
||||
#endif
|
||||
|
@ -4605,13 +4605,13 @@ static void ozone_sidebar_goto(ozone_handle_t *ozone, size_t new_selection)
|
|||
MENU_ENUM_LABEL_SETTINGS_TAB,
|
||||
MENU_ENUM_LABEL_HISTORY_TAB,
|
||||
MENU_ENUM_LABEL_FAVORITES_TAB,
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
MENU_ENUM_LABEL_IMAGES_TAB,
|
||||
#endif
|
||||
MENU_ENUM_LABEL_MUSIC_TAB,
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
MENU_ENUM_LABEL_VIDEO_TAB,
|
||||
#endif
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
MENU_ENUM_LABEL_IMAGES_TAB,
|
||||
#endif
|
||||
#ifdef HAVE_NETWORKING
|
||||
MENU_ENUM_LABEL_NETPLAY_TAB,
|
||||
#endif
|
||||
|
@ -4626,13 +4626,13 @@ static void ozone_sidebar_goto(ozone_handle_t *ozone, size_t new_selection)
|
|||
MENU_SETTINGS_TAB,
|
||||
MENU_HISTORY_TAB,
|
||||
MENU_FAVORITES_TAB,
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
MENU_IMAGES_TAB,
|
||||
#endif
|
||||
MENU_MUSIC_TAB,
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
MENU_VIDEO_TAB,
|
||||
#endif
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
MENU_IMAGES_TAB,
|
||||
#endif
|
||||
#ifdef HAVE_NETWORKING
|
||||
MENU_NETPLAY_TAB,
|
||||
#endif
|
||||
|
@ -5898,6 +5898,16 @@ border_iterate:
|
|||
texture = ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_HISTORY];
|
||||
else if (string_is_equal(entry.rich_label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_FAVORITES_TAB)))
|
||||
texture = ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_FAVORITES];
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
else if (string_is_equal(entry.rich_label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_IMAGES_TAB)))
|
||||
texture = ozone->icons_textures[OZONE_TAB_TEXTURE_IMAGE];
|
||||
#endif
|
||||
else if (string_is_equal(entry.rich_label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MUSIC_TAB)))
|
||||
texture = ozone->icons_textures[OZONE_TAB_TEXTURE_MUSIC];
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
else if (string_is_equal(entry.rich_label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_TAB)))
|
||||
texture = ozone->icons_textures[OZONE_TAB_TEXTURE_VIDEO];
|
||||
#endif
|
||||
else if (i < ozone->horizontal_list.size)
|
||||
{
|
||||
ozone_node_t *sidebar_node = NULL;
|
||||
|
@ -9485,9 +9495,9 @@ static void ozone_context_reset(void *data, bool is_threaded)
|
|||
"settings.png", /* SETTINGS_TAB */
|
||||
"history.png", /* HISTORY_TAB */
|
||||
"favorites.png", /* FAVORITES_TAB */
|
||||
"image.png", /* IMAGES_TAB */
|
||||
"music.png", /* MUSIC_TAB */
|
||||
"video.png", /* VIDEO_TAB */
|
||||
"image.png", /* IMAGES_TAB */
|
||||
"netplay.png", /* NETPLAY_TAB */
|
||||
"add.png", /* ADD_TAB */
|
||||
"core.png", /* CONTENTLESS_CORES_TAB */
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2011-2017 - Daniel De Matteis
|
||||
* Copyright (C) 2014-2017 - Jean-André Santoni
|
||||
|
@ -120,6 +121,9 @@ enum
|
|||
XMB_TEXTURE_SETTINGS,
|
||||
XMB_TEXTURE_HISTORY,
|
||||
XMB_TEXTURE_FAVORITES,
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
XMB_TEXTURE_IMAGES,
|
||||
#endif
|
||||
XMB_TEXTURE_MUSICS,
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
XMB_TEXTURE_MOVIES,
|
||||
|
@ -130,9 +134,6 @@ enum
|
|||
XMB_TEXTURE_ROOM,
|
||||
XMB_TEXTURE_ROOM_LAN,
|
||||
XMB_TEXTURE_ROOM_RELAY,
|
||||
#endif
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
XMB_TEXTURE_IMAGES,
|
||||
#endif
|
||||
XMB_TEXTURE_SETTING,
|
||||
XMB_TEXTURE_SUBSETTING,
|
||||
|
@ -163,8 +164,8 @@ enum
|
|||
XMB_TEXTURE_ZIP,
|
||||
XMB_TEXTURE_FAVORITE,
|
||||
XMB_TEXTURE_ADD_FAVORITE,
|
||||
XMB_TEXTURE_MUSIC,
|
||||
XMB_TEXTURE_IMAGE,
|
||||
XMB_TEXTURE_MUSIC,
|
||||
XMB_TEXTURE_MOVIE,
|
||||
XMB_TEXTURE_CORE,
|
||||
XMB_TEXTURE_RDB,
|
||||
|
@ -3378,12 +3379,12 @@ static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb,
|
|||
case MENU_ENUM_LABEL_GOTO_IMAGES:
|
||||
return xmb->textures.list[XMB_TEXTURE_IMAGES];
|
||||
#endif
|
||||
case MENU_ENUM_LABEL_GOTO_MUSIC:
|
||||
return xmb->textures.list[XMB_TEXTURE_MUSICS];
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
case MENU_ENUM_LABEL_GOTO_VIDEO:
|
||||
return xmb->textures.list[XMB_TEXTURE_MOVIES];
|
||||
#endif
|
||||
case MENU_ENUM_LABEL_GOTO_MUSIC:
|
||||
return xmb->textures.list[XMB_TEXTURE_MUSICS];
|
||||
case MENU_ENUM_LABEL_GOTO_EXPLORE:
|
||||
if (!string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_GOTO_EXPLORE)))
|
||||
return xmb->textures.list[XMB_TEXTURE_CURSOR];
|
||||
|
@ -3800,21 +3801,21 @@ static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb,
|
|||
}
|
||||
else
|
||||
{
|
||||
if (string_is_equal(xmb->title_name, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MUSIC_TAB)))
|
||||
return xmb->textures.list[XMB_TEXTURE_MUSIC];
|
||||
else if (string_is_equal(xmb->title_name, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_IMAGES_TAB)))
|
||||
if (string_is_equal(xmb->title_name, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_IMAGES_TAB)))
|
||||
return xmb->textures.list[XMB_TEXTURE_IMAGE];
|
||||
else if (string_is_equal(xmb->title_name, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MUSIC_TAB)))
|
||||
return xmb->textures.list[XMB_TEXTURE_MUSIC];
|
||||
else if (string_is_equal(xmb->title_name, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_TAB)))
|
||||
return xmb->textures.list[XMB_TEXTURE_MOVIE];
|
||||
}
|
||||
}
|
||||
break;
|
||||
case XMB_SYSTEM_TAB_MUSIC:
|
||||
return xmb->textures.list[XMB_TEXTURE_MUSIC];
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
case XMB_SYSTEM_TAB_IMAGES:
|
||||
return xmb->textures.list[XMB_TEXTURE_IMAGE];
|
||||
#endif
|
||||
case XMB_SYSTEM_TAB_MUSIC:
|
||||
return xmb->textures.list[XMB_TEXTURE_MUSIC];
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
case XMB_SYSTEM_TAB_VIDEO:
|
||||
return xmb->textures.list[XMB_TEXTURE_MOVIE];
|
||||
|
@ -3832,11 +3833,11 @@ static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb,
|
|||
return xmb->textures.list[XMB_TEXTURE_SHADER_OPTIONS];
|
||||
case FILE_TYPE_CARCHIVE:
|
||||
return xmb->textures.list[XMB_TEXTURE_ZIP];
|
||||
case FILE_TYPE_MUSIC:
|
||||
return xmb->textures.list[XMB_TEXTURE_MUSIC];
|
||||
case FILE_TYPE_IMAGE:
|
||||
case FILE_TYPE_IMAGEVIEWER:
|
||||
return xmb->textures.list[XMB_TEXTURE_IMAGE];
|
||||
case FILE_TYPE_MUSIC:
|
||||
return xmb->textures.list[XMB_TEXTURE_MUSIC];
|
||||
case FILE_TYPE_MOVIE:
|
||||
return xmb->textures.list[XMB_TEXTURE_MOVIE];
|
||||
case FILE_TYPE_CORE:
|
||||
|
@ -5145,6 +5146,16 @@ static int xmb_draw_item(
|
|||
texture = xmb->textures.list[XMB_TEXTURE_HISTORY];
|
||||
else if (string_is_equal(entry.rich_label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_FAVORITES_TAB)))
|
||||
texture = xmb->textures.list[XMB_TEXTURE_FAVORITES];
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
else if (string_is_equal(entry.rich_label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_IMAGES_TAB)))
|
||||
texture = xmb->textures.list[XMB_TEXTURE_IMAGES];
|
||||
#endif
|
||||
else if (string_is_equal(entry.rich_label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MUSIC_TAB)))
|
||||
texture = xmb->textures.list[XMB_TEXTURE_MUSICS];
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
else if (string_is_equal(entry.rich_label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_TAB)))
|
||||
texture = xmb->textures.list[XMB_TEXTURE_MOVIES];
|
||||
#endif
|
||||
else if (i < xmb->horizontal_list.size)
|
||||
{
|
||||
xmb_node_t *sidebar_node = NULL;
|
||||
|
@ -6114,15 +6125,15 @@ static const char *xmb_texture_path(unsigned id)
|
|||
return "favorites.png";
|
||||
case XMB_TEXTURE_ADD_FAVORITE:
|
||||
return "add-favorite.png";
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
case XMB_TEXTURE_IMAGES:
|
||||
return "images.png";
|
||||
#endif
|
||||
case XMB_TEXTURE_MUSICS:
|
||||
return "musics.png";
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
case XMB_TEXTURE_MOVIES:
|
||||
return "movies.png";
|
||||
#endif
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
case XMB_TEXTURE_IMAGES:
|
||||
return "images.png";
|
||||
#endif
|
||||
case XMB_TEXTURE_SETTING:
|
||||
return "setting.png";
|
||||
|
@ -6194,12 +6205,12 @@ static const char *xmb_texture_path(unsigned id)
|
|||
return "folder.png";
|
||||
case XMB_TEXTURE_ZIP:
|
||||
return "zip.png";
|
||||
case XMB_TEXTURE_MUSIC:
|
||||
return "music.png";
|
||||
case XMB_TEXTURE_FAVORITE:
|
||||
return "favorites-content.png";
|
||||
case XMB_TEXTURE_IMAGE:
|
||||
return "image.png";
|
||||
case XMB_TEXTURE_MUSIC:
|
||||
return "music.png";
|
||||
case XMB_TEXTURE_MOVIE:
|
||||
return "movie.png";
|
||||
case XMB_TEXTURE_CORE:
|
||||
|
@ -6453,6 +6464,12 @@ static bool xmb_context_reset_textures(
|
|||
xmb->favorites_tab_node.alpha = xmb->categories_active_alpha;
|
||||
xmb->favorites_tab_node.zoom = xmb->categories_active_zoom;
|
||||
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
xmb->images_tab_node.icon = xmb->textures.list[XMB_TEXTURE_IMAGES];
|
||||
xmb->images_tab_node.alpha = xmb->categories_active_alpha;
|
||||
xmb->images_tab_node.zoom = xmb->categories_active_zoom;
|
||||
#endif
|
||||
|
||||
xmb->music_tab_node.icon = xmb->textures.list[XMB_TEXTURE_MUSICS];
|
||||
xmb->music_tab_node.alpha = xmb->categories_active_alpha;
|
||||
xmb->music_tab_node.zoom = xmb->categories_active_zoom;
|
||||
|
@ -6463,12 +6480,6 @@ static bool xmb_context_reset_textures(
|
|||
xmb->video_tab_node.zoom = xmb->categories_active_zoom;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
xmb->images_tab_node.icon = xmb->textures.list[XMB_TEXTURE_IMAGES];
|
||||
xmb->images_tab_node.alpha = xmb->categories_active_alpha;
|
||||
xmb->images_tab_node.zoom = xmb->categories_active_zoom;
|
||||
#endif
|
||||
|
||||
xmb->add_tab_node.icon = xmb->textures.list[XMB_TEXTURE_ADD];
|
||||
xmb->add_tab_node.alpha = xmb->categories_active_alpha;
|
||||
xmb->add_tab_node.zoom = xmb->categories_active_zoom;
|
||||
|
|
|
@ -4826,6 +4826,37 @@ static unsigned menu_displaylist_parse_playlist_manager_list(
|
|||
MENU_SETTING_ACTION, 0, 0, NULL))
|
||||
count++;
|
||||
|
||||
#ifdef HAVE_IMAGEVIEWER
|
||||
/* Add image history */
|
||||
if (playlist_size(g_defaults.image_history) > 0)
|
||||
if (menu_entries_append(list,
|
||||
playlist_get_conf_path(g_defaults.image_history),
|
||||
"",
|
||||
MENU_ENUM_LABEL_PLAYLIST_MANAGER_SETTINGS,
|
||||
MENU_SETTING_ACTION, 0, 0, NULL))
|
||||
count++;
|
||||
#endif
|
||||
|
||||
/* Add music history */
|
||||
if (playlist_size(g_defaults.music_history) > 0)
|
||||
if (menu_entries_append(list,
|
||||
playlist_get_conf_path(g_defaults.music_history),
|
||||
"",
|
||||
MENU_ENUM_LABEL_PLAYLIST_MANAGER_SETTINGS,
|
||||
MENU_SETTING_ACTION, 0, 0, NULL))
|
||||
count++;
|
||||
|
||||
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
||||
/* Add video history */
|
||||
if (playlist_size(g_defaults.video_history) > 0)
|
||||
if (menu_entries_append(list,
|
||||
playlist_get_conf_path(g_defaults.video_history),
|
||||
"",
|
||||
MENU_ENUM_LABEL_PLAYLIST_MANAGER_SETTINGS,
|
||||
MENU_SETTING_ACTION, 0, 0, NULL))
|
||||
count++;
|
||||
#endif
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
@ -4833,7 +4864,8 @@ static bool menu_displaylist_parse_playlist_manager_settings(
|
|||
menu_handle_t *menu, settings_t *settings, file_list_t *list,
|
||||
const char *playlist_path)
|
||||
{
|
||||
bool is_content_history;
|
||||
bool is_content_history = false;
|
||||
bool is_media_history = false;
|
||||
enum msg_hash_enums right_thumbnail_label_value;
|
||||
enum msg_hash_enums left_thumbnail_label_value;
|
||||
const char *playlist_file = NULL;
|
||||
|
@ -4863,6 +4895,16 @@ static bool menu_displaylist_parse_playlist_manager_settings(
|
|||
is_content_history = string_ends_with_size(
|
||||
playlist_path, "_history.lpl", strlen(playlist_path),
|
||||
STRLEN_CONST("_history.lpl"));
|
||||
is_media_history =
|
||||
string_ends_with_size(
|
||||
playlist_path, "_image_history.lpl", strlen(playlist_path),
|
||||
STRLEN_CONST("_image_history.lpl"))
|
||||
|| string_ends_with_size(
|
||||
playlist_path, "_music_history.lpl", strlen(playlist_path),
|
||||
STRLEN_CONST("_music_history.lpl"))
|
||||
|| string_ends_with_size(
|
||||
playlist_path, "_video_history.lpl", strlen(playlist_path),
|
||||
STRLEN_CONST("_video_history.lpl"));
|
||||
|
||||
/* Label display mode */
|
||||
menu_entries_append(list,
|
||||
|
@ -4898,19 +4940,22 @@ static bool menu_displaylist_parse_playlist_manager_settings(
|
|||
}
|
||||
#endif
|
||||
|
||||
/* > Right thumbnail mode */
|
||||
menu_entries_append(list,
|
||||
msg_hash_to_str(right_thumbnail_label_value),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_PLAYLIST_MANAGER_RIGHT_THUMBNAIL_MODE),
|
||||
MENU_ENUM_LABEL_PLAYLIST_MANAGER_RIGHT_THUMBNAIL_MODE,
|
||||
MENU_SETTING_PLAYLIST_MANAGER_RIGHT_THUMBNAIL_MODE, 0, 0, NULL);
|
||||
if (!is_media_history)
|
||||
{
|
||||
/* > Right thumbnail mode */
|
||||
menu_entries_append(list,
|
||||
msg_hash_to_str(right_thumbnail_label_value),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_PLAYLIST_MANAGER_RIGHT_THUMBNAIL_MODE),
|
||||
MENU_ENUM_LABEL_PLAYLIST_MANAGER_RIGHT_THUMBNAIL_MODE,
|
||||
MENU_SETTING_PLAYLIST_MANAGER_RIGHT_THUMBNAIL_MODE, 0, 0, NULL);
|
||||
|
||||
/* > Left thumbnail mode */
|
||||
menu_entries_append(list,
|
||||
msg_hash_to_str(left_thumbnail_label_value),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_PLAYLIST_MANAGER_LEFT_THUMBNAIL_MODE),
|
||||
MENU_ENUM_LABEL_PLAYLIST_MANAGER_LEFT_THUMBNAIL_MODE,
|
||||
MENU_SETTING_PLAYLIST_MANAGER_LEFT_THUMBNAIL_MODE, 0, 0, NULL);
|
||||
/* > Left thumbnail mode */
|
||||
menu_entries_append(list,
|
||||
msg_hash_to_str(left_thumbnail_label_value),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_PLAYLIST_MANAGER_LEFT_THUMBNAIL_MODE),
|
||||
MENU_ENUM_LABEL_PLAYLIST_MANAGER_LEFT_THUMBNAIL_MODE,
|
||||
MENU_SETTING_PLAYLIST_MANAGER_LEFT_THUMBNAIL_MODE, 0, 0, NULL);
|
||||
}
|
||||
|
||||
/* Sorting mode
|
||||
* > Not relevant for history playlists */
|
||||
|
|
Loading…
Reference in New Issue