Create MENU_ENUM_SUBLABEL_FPS_SHOW

This commit is contained in:
twinaphex 2016-10-20 19:28:45 +02:00
parent 6420f9414f
commit 7e0cadfac1
3 changed files with 17 additions and 1 deletions

View File

@ -3023,6 +3023,8 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
switch (msg)
{
case MENU_ENUM_SUBLABEL_FPS_SHOW:
return "Displays the current framerate per second onscreen.";
case MENU_ENUM_SUBLABEL_VIDEO_SETTINGS:
return "Adjusts settings for video output.";
case MENU_ENUM_SUBLABEL_AUDIO_SETTINGS:

View File

@ -66,6 +66,16 @@ static int action_bind_sublabel_audio_settings_list(
return 0;
}
static int action_bind_sublabel_fps_show(
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_FPS_SHOW), 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)
{
@ -78,6 +88,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_FPS_SHOW:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_fps_show);
break;
case MENU_ENUM_LABEL_VIDEO_SETTINGS:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_settings_list);
break;

View File

@ -1867,7 +1867,8 @@ enum msg_hash_enums
MENU_ENUM_SUBLABEL_VIDEO_SETTINGS,
MENU_ENUM_SUBLABEL_AUDIO_SETTINGS,
MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE
MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE,
MENU_ENUM_SUBLABEL_FPS_SHOW
};