Add sublabels

This commit is contained in:
twinaphex 2017-02-02 05:34:14 +01:00
parent 2539de0111
commit 731f743e2f
2 changed files with 24 additions and 0 deletions

View File

@ -2575,3 +2575,15 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_DYNAMIC_WALLPAPER,
"Dynamically load a new wallpaper depending on context."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_AUDIO_DEVICE,
"Override the default audio device the audio driver uses. This is driver dependant."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_AUDIO_DSP_PLUGIN,
"Audio DSP plugin that processes audio before it's sent to the driver."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_AUDIO_OUTPUT_RATE,
"Audio output samplerate."
)

View File

@ -177,6 +177,9 @@ default_sublabel_macro(action_bind_sublabel_wifi_driver, MENU_
default_sublabel_macro(action_bind_sublabel_filter_supported_extensions, MENU_ENUM_SUBLABEL_NAVIGATION_BROWSER_FILTER_SUPPORTED_EXTENSIONS_ENABLE)
default_sublabel_macro(action_bind_sublabel_wallpaper, MENU_ENUM_SUBLABEL_MENU_WALLPAPER)
default_sublabel_macro(action_bind_sublabel_dynamic_wallpaper, MENU_ENUM_SUBLABEL_DYNAMIC_WALLPAPER)
default_sublabel_macro(action_bind_sublabel_audio_device, MENU_ENUM_SUBLABEL_AUDIO_DEVICE)
default_sublabel_macro(action_bind_sublabel_audio_output_rate, MENU_ENUM_SUBLABEL_AUDIO_OUTPUT_RATE)
default_sublabel_macro(action_bind_sublabel_audio_dsp_plugin, MENU_ENUM_SUBLABEL_AUDIO_DSP_PLUGIN)
static int action_bind_sublabel_cheevos_entry(
file_list_t *list,
@ -238,6 +241,15 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_AUDIO_DSP_PLUGIN:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_audio_dsp_plugin);
break;
case MENU_ENUM_LABEL_AUDIO_OUTPUT_RATE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_audio_output_rate);
break;
case MENU_ENUM_LABEL_AUDIO_DEVICE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_audio_device);
break;
case MENU_ENUM_LABEL_MENU_WALLPAPER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_wallpaper);
break;