From 476ce38e3b798aff4be8b15ba55ccb4acf11801b Mon Sep 17 00:00:00 2001 From: lasers Date: Sat, 10 Dec 2016 16:38:33 -0600 Subject: [PATCH] Add sublabel for Playlists (enable,history_size) --- intl/msg_hash_de.h | 4 ++++ intl/msg_hash_eo.h | 4 ++++ intl/msg_hash_fr.h | 4 ++++ intl/msg_hash_ja.h | 4 ++++ intl/msg_hash_nl.h | 4 ++++ intl/msg_hash_ru.h | 4 ++++ intl/msg_hash_us.h | 4 ++++ menu/cbs/menu_cbs_sublabel.c | 8 ++++++++ 8 files changed, 36 insertions(+) diff --git a/intl/msg_hash_de.h b/intl/msg_hash_de.h index 1d24e2495f..6117c5a6d5 100644 --- a/intl/msg_hash_de.h +++ b/intl/msg_hash_de.h @@ -842,3 +842,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_PAUSE_NONACTIVE, "Pause gameplay when window focus is lost.") MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_DISABLE_COMPOSITION, "Enable or disable composition (Windows only).") +MSG_HASH(MENU_ENUM_SUBLABEL_HISTORY_LIST_ENABLE, + "Enable or disable recent playlist for games, images, music, and videos.") +MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_HISTORY_SIZE, + "Limit the number of entries in recent playlist for games, images, music, and videos.") diff --git a/intl/msg_hash_eo.h b/intl/msg_hash_eo.h index c5b4df14c8..311dffe647 100644 --- a/intl/msg_hash_eo.h +++ b/intl/msg_hash_eo.h @@ -2241,3 +2241,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_PAUSE_NONACTIVE, "Pause gameplay when window focus is lost.") MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_DISABLE_COMPOSITION, "Enable or disable composition (Windows only).") +MSG_HASH(MENU_ENUM_SUBLABEL_HISTORY_LIST_ENABLE, + "Enable or disable recent playlist for games, images, music, and videos.") +MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_HISTORY_SIZE, + "Limit the number of entries in recent playlist for games, images, music, and videos.") diff --git a/intl/msg_hash_fr.h b/intl/msg_hash_fr.h index a3784bce99..ffe5013be0 100644 --- a/intl/msg_hash_fr.h +++ b/intl/msg_hash_fr.h @@ -2207,3 +2207,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_PAUSE_NONACTIVE, "Pause gameplay when window focus is lost.") MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_DISABLE_COMPOSITION, "Enable or disable composition (Windows only).") +MSG_HASH(MENU_ENUM_SUBLABEL_HISTORY_LIST_ENABLE, + "Enable or disable recent playlist for games, images, music, and videos.") +MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_HISTORY_SIZE, + "Limit the number of entries in recent playlist for games, images, music, and videos.") diff --git a/intl/msg_hash_ja.h b/intl/msg_hash_ja.h index edaaad0f4e..4ce00a91e4 100644 --- a/intl/msg_hash_ja.h +++ b/intl/msg_hash_ja.h @@ -2261,3 +2261,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_PAUSE_NONACTIVE, "Pause gameplay when window focus is lost.") MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_DISABLE_COMPOSITION, "Enable or disable composition (Windows only).") +MSG_HASH(MENU_ENUM_SUBLABEL_HISTORY_LIST_ENABLE, + "Enable or disable recent playlist for games, images, music, and videos.") +MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_HISTORY_SIZE, + "Limit the number of entries in recent playlist for games, images, music, and videos.") diff --git a/intl/msg_hash_nl.h b/intl/msg_hash_nl.h index 5c88829f23..3f6c3d41db 100644 --- a/intl/msg_hash_nl.h +++ b/intl/msg_hash_nl.h @@ -2241,3 +2241,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_PAUSE_NONACTIVE, "Pause gameplay when window focus is lost.") MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_DISABLE_COMPOSITION, "Enable or disable composition (Windows only).") +MSG_HASH(MENU_ENUM_SUBLABEL_HISTORY_LIST_ENABLE, + "Enable or disable recent playlist for games, images, music, and videos.") +MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_HISTORY_SIZE, + "Limit the number of entries in recent playlist for games, images, music, and videos.") diff --git a/intl/msg_hash_ru.h b/intl/msg_hash_ru.h index 773d219acd..2ef320b97e 100644 --- a/intl/msg_hash_ru.h +++ b/intl/msg_hash_ru.h @@ -2235,3 +2235,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_PAUSE_NONACTIVE, "Pause gameplay when window focus is lost.") MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_DISABLE_COMPOSITION, "Enable or disable composition (Windows only).") +MSG_HASH(MENU_ENUM_SUBLABEL_HISTORY_LIST_ENABLE, + "Enable or disable recent playlist for games, images, music, and videos.") +MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_HISTORY_SIZE, + "Limit the number of entries in recent playlist for games, images, music, and videos.") diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index e7a4457ec6..b50457c8c5 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -2273,3 +2273,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_PAUSE_NONACTIVE, "Pause gameplay when window focus is lost.") MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_DISABLE_COMPOSITION, "Enable or disable composition (Windows only).") +MSG_HASH(MENU_ENUM_SUBLABEL_HISTORY_LIST_ENABLE, + "Enable or disable recent playlist for games, images, music, and videos.") +MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_HISTORY_SIZE, + "Limit the number of entries in recent playlist for games, images, music, and videos.") diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index 495f0cddeb..a9310f195e 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -112,6 +112,8 @@ default_sublabel_macro(action_bind_sublabel_audio_enable, MENU_ default_sublabel_macro(action_bind_sublabel_audio_max_timing_skew, MENU_ENUM_SUBLABEL_AUDIO_MAX_TIMING_SKEW) default_sublabel_macro(action_bind_sublabel_pause_nonactive, MENU_ENUM_SUBLABEL_PAUSE_NONACTIVE) default_sublabel_macro(action_bind_sublabel_video_disable_composition, MENU_ENUM_SUBLABEL_VIDEO_DISABLE_COMPOSITION) +default_sublabel_macro(action_bind_sublabel_history_list_enable, MENU_ENUM_SUBLABEL_HISTORY_LIST_ENABLE) +default_sublabel_macro(action_bind_sublabel_content_history_size, MENU_ENUM_SUBLABEL_CONTENT_HISTORY_SIZE) static int action_bind_sublabel_cheevos_entry( file_list_t *list, @@ -403,6 +405,12 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, case MENU_ENUM_LABEL_VIDEO_DISABLE_COMPOSITION: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_disable_composition); break; + case MENU_ENUM_LABEL_HISTORY_LIST_ENABLE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_history_list_enable); + break; + case MENU_ENUM_LABEL_CONTENT_HISTORY_SIZE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_content_history_size); + break; default: case MSG_UNKNOWN: return -1;