mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 20:43:10 +00:00
Add another label
This commit is contained in:
parent
838cae65c3
commit
1b829e3159
@ -3024,10 +3024,11 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
|||||||
switch (msg)
|
switch (msg)
|
||||||
{
|
{
|
||||||
case MENU_ENUM_SUBLABEL_VIDEO_SETTINGS:
|
case MENU_ENUM_SUBLABEL_VIDEO_SETTINGS:
|
||||||
return "Adjusts settings for video output";
|
return "Adjusts settings for video output.";
|
||||||
case MENU_ENUM_SUBLABEL_AUDIO_SETTINGS:
|
case MENU_ENUM_SUBLABEL_AUDIO_SETTINGS:
|
||||||
return "Adjusts settings for audio output";
|
return "Adjusts settings for audio output.";
|
||||||
|
case MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE:
|
||||||
|
return "Prevents your system's screensaver from becoming active.";
|
||||||
case MSG_VALUE_SHUTTING_DOWN:
|
case MSG_VALUE_SHUTTING_DOWN:
|
||||||
return "Shutting down";
|
return "Shutting down";
|
||||||
case MSG_VALUE_REBOOTING:
|
case MSG_VALUE_REBOOTING:
|
||||||
|
@ -46,6 +46,16 @@ static int action_bind_sublabel_video_settings_list(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int action_bind_sublabel_suspend_screensaver_enable(
|
||||||
|
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_SUSPEND_SCREENSAVER_ENABLE), len);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int action_bind_sublabel_audio_settings_list(
|
static int action_bind_sublabel_audio_settings_list(
|
||||||
file_list_t *list,
|
file_list_t *list,
|
||||||
unsigned type, unsigned i,
|
unsigned type, unsigned i,
|
||||||
@ -74,6 +84,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
|||||||
case MENU_ENUM_LABEL_AUDIO_SETTINGS:
|
case MENU_ENUM_LABEL_AUDIO_SETTINGS:
|
||||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_audio_settings_list);
|
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_audio_settings_list);
|
||||||
break;
|
break;
|
||||||
|
case MENU_ENUM_LABEL_SUSPEND_SCREENSAVER_ENABLE:
|
||||||
|
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_suspend_screensaver_enable);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
case MSG_UNKNOWN:
|
case MSG_UNKNOWN:
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -1858,7 +1858,8 @@ enum msg_hash_enums
|
|||||||
MENU_ENUM_LABEL_CB_CORE_THUMBNAILS_DOWNLOAD,
|
MENU_ENUM_LABEL_CB_CORE_THUMBNAILS_DOWNLOAD,
|
||||||
|
|
||||||
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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user