Add sublabel for Driver

This commit is contained in:
lasers 2016-11-17 03:11:10 -06:00
parent 8960893caf
commit 14e29d51bf
3 changed files with 16 additions and 0 deletions

View File

@ -1610,6 +1610,8 @@ MSG_HASH(MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_TWO,
"Shader Preset")
MSG_HASH(MENU_ENUM_SUBLABEL_CHEEVOS_HARDCORE_MODE_ENABLE,
"Enable or disable savestates, cheats, rewind, fast-forward, pause, and slow-motion for all games.")
MSG_HASH(MENU_ENUM_SUBLABEL_DRIVER_SETTINGS,
"Change drivers for the system.")
MSG_HASH(MENU_ENUM_SUBLABEL_RETRO_ACHIEVEMENTS_SETTINGS,
"Change settings for the achievements.")
MSG_HASH(MENU_ENUM_SUBLABEL_CORE_SETTINGS,

View File

@ -40,6 +40,16 @@ static int action_bind_sublabel_generic(
return 0;
}
static int action_bind_sublabel_driver_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_DRIVER_SETTINGS), len);
return 0;
}
static int action_bind_sublabel_retro_achievements_settings_list(
file_list_t *list,
unsigned type, unsigned i,
@ -537,6 +547,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
case MENU_ENUM_LABEL_CORE_SETTINGS:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_core_settings_list);
break;
case MENU_ENUM_LABEL_DRIVER_SETTINGS:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_driver_settings_list);
break;
case MENU_ENUM_LABEL_RETRO_ACHIEVEMENTS_SETTINGS:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_retro_achievements_settings_list);
break;

View File

@ -1956,6 +1956,7 @@ enum msg_hash_enums
MENU_ENUM_SUBLABEL_CONFIG_SAVE_ON_EXIT,
MENU_ENUM_SUBLABEL_CORE_SETTINGS,
MENU_ENUM_SUBLABEL_CPU_CORES,
MENU_ENUM_SUBLABEL_DRIVER_SETTINGS,
MENU_ENUM_SUBLABEL_FPS_SHOW,
MENU_ENUM_SUBLABEL_INFORMATION_LIST_LIST,
MENU_ENUM_SUBLABEL_INPUT_HOTKEY_BINDS,