Add sublabel

This commit is contained in:
twinaphex 2017-02-02 05:07:49 +01:00
parent 6c260a7268
commit 88731122a1
2 changed files with 8 additions and 0 deletions

View File

@ -2519,3 +2519,7 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_MENU_INPUT_SWAP_OK_CANCEL,
"Swap buttons for OK/Cancel. Disabled is the Japanese button orientation, enabled is the western orientation."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_PAUSE_LIBRETRO,
"If disabled, the content will keep running in the background when we are in the menu."
)

View File

@ -163,6 +163,7 @@ default_sublabel_macro(action_bind_sublabel_autosave_interval, MENU_
default_sublabel_macro(action_bind_sublabel_input_remap_binds_enable, MENU_ENUM_SUBLABEL_INPUT_REMAP_BINDS_ENABLE)
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)
static int action_bind_sublabel_cheevos_entry(
file_list_t *list,
@ -224,6 +225,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_PAUSE_LIBRETRO:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_pause_libretro);
break;
case MENU_ENUM_LABEL_MENU_INPUT_SWAP_OK_CANCEL:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_input_swap_ok_cancel);
break;