Add more sublabels
This commit is contained in:
parent
7e0cadfac1
commit
68a5f33ebd
|
@ -3031,6 +3031,10 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
||||||
return "Adjusts settings for audio output.";
|
return "Adjusts settings for audio output.";
|
||||||
case MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE:
|
case MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE:
|
||||||
return "Prevents your system's screensaver from becoming active.";
|
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:
|
case MSG_VALUE_SHUTTING_DOWN:
|
||||||
return "Shutting down...";
|
return "Shutting down...";
|
||||||
case MSG_VALUE_REBOOTING:
|
case MSG_VALUE_REBOOTING:
|
||||||
|
|
|
@ -66,6 +66,26 @@ static int action_bind_sublabel_audio_settings_list(
|
||||||
return 0;
|
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(
|
static int action_bind_sublabel_fps_show(
|
||||||
file_list_t *list,
|
file_list_t *list,
|
||||||
unsigned type, unsigned i,
|
unsigned type, unsigned i,
|
||||||
|
@ -88,6 +108,12 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
||||||
{
|
{
|
||||||
switch (cbs->enum_idx)
|
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:
|
case MENU_ENUM_LABEL_FPS_SHOW:
|
||||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_fps_show);
|
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_fps_show);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1868,7 +1868,9 @@ enum msg_hash_enums
|
||||||
MENU_ENUM_SUBLABEL_VIDEO_SETTINGS,
|
MENU_ENUM_SUBLABEL_VIDEO_SETTINGS,
|
||||||
MENU_ENUM_SUBLABEL_AUDIO_SETTINGS,
|
MENU_ENUM_SUBLABEL_AUDIO_SETTINGS,
|
||||||
MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE,
|
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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue