Add sublabels

This commit is contained in:
twinaphex 2017-02-02 05:20:29 +01:00
parent 88731122a1
commit 9e114d5dee
3 changed files with 81 additions and 1 deletions

View File

@ -2523,3 +2523,43 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_PAUSE_LIBRETRO,
"If disabled, the content will keep running in the background when we are in the menu."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_VIDEO_DRIVER,
"Video driver to use."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_AUDIO_DRIVER,
"Audio driver to use."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_INPUT_DRIVER,
"Input driver to use. Depending on the video driver, it might force a different input driver."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_JOYPAD_DRIVER,
"Joypad driver to use."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_AUDIO_RESAMPLER_DRIVER,
"Audio resampler driver to use."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CAMERA_DRIVER,
"Camera driver to use."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_LOCATION_DRIVER,
"Location driver to use."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_MENU_DRIVER,
"Menu driver to use."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_RECORD_DRIVER,
"Record driver to use."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_WIFI_DRIVER,
"WiFi driver to use."
)

View File

@ -164,6 +164,16 @@ default_sublabel_macro(action_bind_sublabel_input_remap_binds_enable, MENU_
default_sublabel_macro(action_bind_sublabel_input_autodetect_enable, MENU_ENUM_SUBLABEL_INPUT_AUTODETECT_ENABLE)
default_sublabel_macro(action_bind_sublabel_input_swap_ok_cancel, MENU_ENUM_SUBLABEL_MENU_INPUT_SWAP_OK_CANCEL)
default_sublabel_macro(action_bind_sublabel_pause_libretro, MENU_ENUM_SUBLABEL_PAUSE_LIBRETRO)
default_sublabel_macro(action_bind_sublabel_video_driver, MENU_ENUM_SUBLABEL_VIDEO_DRIVER)
default_sublabel_macro(action_bind_sublabel_audio_driver, MENU_ENUM_SUBLABEL_AUDIO_DRIVER)
default_sublabel_macro(action_bind_sublabel_input_driver, MENU_ENUM_SUBLABEL_INPUT_DRIVER)
default_sublabel_macro(action_bind_sublabel_joypad_driver, MENU_ENUM_SUBLABEL_JOYPAD_DRIVER)
default_sublabel_macro(action_bind_sublabel_audio_resampler_driver, MENU_ENUM_SUBLABEL_AUDIO_RESAMPLER_DRIVER)
default_sublabel_macro(action_bind_sublabel_camera_driver, MENU_ENUM_SUBLABEL_CAMERA_DRIVER)
default_sublabel_macro(action_bind_sublabel_location_driver, MENU_ENUM_SUBLABEL_LOCATION_DRIVER)
default_sublabel_macro(action_bind_sublabel_menu_driver, MENU_ENUM_SUBLABEL_MENU_DRIVER)
default_sublabel_macro(action_bind_sublabel_record_driver, MENU_ENUM_SUBLABEL_RECORD_DRIVER)
default_sublabel_macro(action_bind_sublabel_wifi_driver, MENU_ENUM_SUBLABEL_WIFI_DRIVER)
static int action_bind_sublabel_cheevos_entry(
file_list_t *list,
@ -225,6 +235,36 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_WIFI_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_wifi_driver);
break;
case MENU_ENUM_LABEL_RECORD_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_record_driver);
break;
case MENU_ENUM_LABEL_MENU_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_driver);
break;
case MENU_ENUM_LABEL_LOCATION_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_location_driver);
break;
case MENU_ENUM_LABEL_CAMERA_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_camera_driver);
break;
case MENU_ENUM_LABEL_AUDIO_RESAMPLER_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_audio_resampler_driver);
break;
case MENU_ENUM_LABEL_JOYPAD_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_joypad_driver);
break;
case MENU_ENUM_LABEL_INPUT_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_input_driver);
break;
case MENU_ENUM_LABEL_AUDIO_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_audio_driver);
break;
case MENU_ENUM_LABEL_VIDEO_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_driver);
break;
case MENU_ENUM_LABEL_PAUSE_LIBRETRO:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_pause_libretro);
break;

View File

@ -339,7 +339,7 @@
# Input driver. Depending on video driver, it might force a different input driver.
# input_driver = sdl
# Input device driver. (Valid: linuxraw, sdl, dinput)
# Joypad driver. (Valid: linuxraw, sdl, dinput)
# input_joypad_driver =
# Path to input remapping file.