Add more sublabels

This commit is contained in:
twinaphex 2016-10-20 19:42:42 +02:00
parent 7e0cadfac1
commit 68a5f33ebd
3 changed files with 33 additions and 1 deletions

View File

@ -3031,6 +3031,10 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
return "Adjusts settings for audio output.";
case MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE:
return "Prevents your system's screensaver from becoming active.";
case MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES:
return "Tell the video driver to explicitly use a specified buffering mode.";
case MENU_ENUM_SUBLABEL_ONLINE_UPDATER:
return "Download and update add-ons and components for RetroArch.";
case MSG_VALUE_SHUTTING_DOWN:
return "Shutting down...";
case MSG_VALUE_REBOOTING:

View File

@ -66,6 +66,26 @@ static int action_bind_sublabel_audio_settings_list(
return 0;
}
static int action_bind_sublabel_max_swapchain_images(
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_MAX_SWAPCHAIN_IMAGES), len);
return 0;
}
static int action_bind_sublabel_online_updater(
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_ONLINE_UPDATER), len);
return 0;
}
static int action_bind_sublabel_fps_show(
file_list_t *list,
unsigned type, unsigned i,
@ -88,6 +108,12 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_ONLINE_UPDATER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_online_updater);
break;
case MENU_ENUM_LABEL_VIDEO_MAX_SWAPCHAIN_IMAGES:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_max_swapchain_images);
break;
case MENU_ENUM_LABEL_FPS_SHOW:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_fps_show);
break;

View File

@ -1868,7 +1868,9 @@ enum msg_hash_enums
MENU_ENUM_SUBLABEL_VIDEO_SETTINGS,
MENU_ENUM_SUBLABEL_AUDIO_SETTINGS,
MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE,
MENU_ENUM_SUBLABEL_FPS_SHOW
MENU_ENUM_SUBLABEL_FPS_SHOW,
MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES,
MENU_ENUM_SUBLABEL_ONLINE_UPDATER
};