mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Add sublabel for Menu Settings
This commit is contained in:
parent
7740eb1094
commit
7b7b9b1f27
@ -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:
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user