mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Add audio settings sublabel
This commit is contained in:
parent
0a295998a2
commit
8d28a5f2e9
@ -3024,7 +3024,9 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
||||
switch (msg)
|
||||
{
|
||||
case MENU_ENUM_SUBLABEL_VIDEO_SETTINGS:
|
||||
return "Adjust settings for video output";
|
||||
return "Adjusts settings for video output";
|
||||
case MENU_ENUM_SUBLABEL_AUDIO_SETTINGS:
|
||||
return "Adjusts settings for audio output";
|
||||
|
||||
case MSG_VALUE_SHUTTING_DOWN:
|
||||
return "Shutting down";
|
||||
|
@ -46,6 +46,16 @@ static int action_bind_sublabel_video_settings_list(
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int action_bind_sublabel_audio_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_AUDIO_SETTINGS), len);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx)
|
||||
{
|
||||
@ -61,6 +71,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
||||
case MENU_ENUM_LABEL_VIDEO_SETTINGS:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_settings_list);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_AUDIO_SETTINGS:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_audio_settings_list);
|
||||
break;
|
||||
default:
|
||||
case MSG_UNKNOWN:
|
||||
return -1;
|
||||
|
@ -1556,7 +1556,6 @@ enum msg_hash_enums
|
||||
|
||||
|
||||
MENU_ENUM_LABEL_VIDEO_SETTINGS,
|
||||
MENU_ENUM_SUBLABEL_VIDEO_SETTINGS,
|
||||
|
||||
MENU_ENUM_LABEL_AUDIO_SETTINGS,
|
||||
MENU_ENUM_LABEL_VALUE_AUDIO_SETTINGS,
|
||||
@ -1856,7 +1855,10 @@ enum msg_hash_enums
|
||||
MENU_ENUM_LABEL_CB_UPDATE_CORE_INFO_FILES,
|
||||
MENU_ENUM_LABEL_CB_UPDATE_AUTOCONFIG_PROFILES,
|
||||
MENU_ENUM_LABEL_CB_CORE_UPDATER_DOWNLOAD,
|
||||
MENU_ENUM_LABEL_CB_CORE_THUMBNAILS_DOWNLOAD
|
||||
MENU_ENUM_LABEL_CB_CORE_THUMBNAILS_DOWNLOAD,
|
||||
|
||||
MENU_ENUM_SUBLABEL_VIDEO_SETTINGS,
|
||||
MENU_ENUM_SUBLABEL_AUDIO_SETTINGS
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user