diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c index 355409ac5b..f02a0a7fa3 100644 --- a/intl/msg_hash_us.c +++ b/intl/msg_hash_us.c @@ -3023,6 +3023,10 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg) switch (msg) { + case MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE_AUTO: + return "The accurate estimated refresh rate of the monitor in Hz."; + case MENU_ENUM_SUBLABEL_VIDEO_MONITOR_INDEX: + return "Selects which display monitor to use."; case MENU_ENUM_SUBLABEL_LOG_VERBOSITY: return "Enable or disable logging to the terminal."; case MENU_ENUM_SUBLABEL_SHOW_HIDDEN_FILES: diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index 53ea84837d..403169731b 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -200,6 +200,26 @@ static int action_bind_sublabel_log_verbosity( return 0; } +static int action_bind_sublabel_video_monitor_index( + file_list_t *list, + unsigned type, unsigned i, + const char *label, const char *path, + char *s, size_t len) +{ + strlcpy(s, msg_hash_to_str(MENU_ENUM_SUBLABEL_VIDEO_MONITOR_INDEX), len); + return 0; +} + +static int action_bind_sublabel_video_refresh_rate_auto( + file_list_t *list, + unsigned type, unsigned i, + const char *label, const char *path, + char *s, size_t len) +{ + strlcpy(s, msg_hash_to_str(MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE_AUTO), len); + return 0; +} + int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, const char *path, const char *label, unsigned type, size_t idx) { @@ -212,6 +232,12 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, { switch (cbs->enum_idx) { + case MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_AUTO: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_refresh_rate_auto); + break; + case MENU_ENUM_LABEL_VIDEO_MONITOR_INDEX: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_monitor_index); + break; case MENU_ENUM_LABEL_LOG_VERBOSITY: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_log_verbosity); break; diff --git a/msg_hash.h b/msg_hash.h index 85e44f227a..1dec200e60 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -1865,6 +1865,8 @@ enum msg_hash_enums MENU_ENUM_LABEL_CB_CORE_UPDATER_DOWNLOAD, MENU_ENUM_LABEL_CB_CORE_THUMBNAILS_DOWNLOAD, + MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE_AUTO, + MENU_ENUM_SUBLABEL_VIDEO_MONITOR_INDEX, MENU_ENUM_SUBLABEL_LOG_VERBOSITY, MENU_ENUM_SUBLABEL_SHOW_HIDDEN_FILES, MENU_ENUM_SUBLABEL_INPUT_MENU_ENUM_TOGGLE_GAMEPAD_COMBO,