1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-05 17:58:41 +00:00

Add sublabel for Menu Settings

This commit is contained in:
twinaphex 2016-10-24 04:27:43 +02:00
parent 7740eb1094
commit 7b7b9b1f27
3 changed files with 17 additions and 1 deletions

View File

@ -1899,6 +1899,8 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg)
switch (msg)
{
case MENU_ENUM_SUBLABEL_MENU_SETTINGS:
return "Adjusts settings related to the appearance of the menu screen.";
case MSG_CONNECTION_SLOT:
return "Connection slot";
case MSG_WAITING_FOR_CLIENT:

View File

@ -36,6 +36,16 @@ static int action_bind_sublabel_generic(
return 0;
}
static int action_bind_sublabel_menu_settings_list(
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_MENU_SETTINGS), len);
return 0;
}
static int action_bind_sublabel_video_settings_list(
file_list_t *list,
unsigned type, unsigned i,
@ -305,6 +315,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
case MENU_ENUM_LABEL_FPS_SHOW:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_fps_show);
break;
case MENU_ENUM_LABEL_MENU_SETTINGS:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_settings_list);
break;
case MENU_ENUM_LABEL_VIDEO_SETTINGS:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_settings_list);
break;

View File

@ -1875,7 +1875,8 @@ enum msg_hash_enums
MENU_ENUM_SUBLABEL_FPS_SHOW,
MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES,
MENU_ENUM_SUBLABEL_ONLINE_UPDATER,
MENU_ENUM_SUBLABEL_NETPLAY
MENU_ENUM_SUBLABEL_NETPLAY,
MENU_ENUM_SUBLABEL_MENU_SETTINGS
};