mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Create MENU_ENUM_SUBLABEL_FPS_SHOW
This commit is contained in:
parent
6420f9414f
commit
7e0cadfac1
@ -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:
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user