Add Quick Menu sublabel

This commit is contained in:
twinaphex 2017-02-02 21:41:34 +01:00
parent 4ad2cca8e5
commit 1986a80b66
2 changed files with 6 additions and 0 deletions

View File

@ -2924,3 +2924,5 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_CHEAT_FILE_SAVE_AS,
"Save current cheats as a save file."
)
MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SETTINGS,
"Quickly access all relevant in-game settings.")

View File

@ -305,6 +305,7 @@ default_sublabel_macro(action_bind_sublabel_cheat_apply_changes,
default_sublabel_macro(action_bind_sublabel_cheat_num_passes, MENU_ENUM_SUBLABEL_CHEAT_NUM_PASSES)
default_sublabel_macro(action_bind_sublabel_cheat_file_load, MENU_ENUM_SUBLABEL_CHEAT_FILE_LOAD)
default_sublabel_macro(action_bind_sublabel_cheat_file_save_as, MENU_ENUM_SUBLABEL_CHEAT_FILE_SAVE_AS)
default_sublabel_macro(action_bind_sublabel_quick_menu, MENU_ENUM_SUBLABEL_CONTENT_SETTINGS)
static int action_bind_sublabel_cheevos_entry(
file_list_t *list,
@ -366,6 +367,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_CONTENT_SETTINGS:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_quick_menu);
break;
case MENU_ENUM_LABEL_CHEAT_FILE_SAVE_AS:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheat_file_save_as);
break;