Merge pull request #4004 from lasers/improvs-one-at-a-time

Improvs one at a time - Information
This commit is contained in:
Twinaphex 2016-11-16 08:48:43 +01:00 committed by GitHub
commit 25d3c71e1a
3 changed files with 17 additions and 1 deletions

View File

@ -1636,6 +1636,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOG_VERBOSITY,
"Enable or disable logging to the terminal.")
MSG_HASH(MENU_ENUM_SUBLABEL_NETPLAY,
"Join or host a netplay session.")
MSG_HASH(MENU_ENUM_SUBLABEL_INFORMATION_LIST_LIST,
"Display information for core, network, and system.\nDisplay manager for database and cursor.")
MSG_HASH(MENU_ENUM_SUBLABEL_ONLINE_UPDATER,
"Download add-ons, components and contents for RetroArch.")
MSG_HASH(MENU_ENUM_SUBLABEL_SAMBA_ENABLE,

View File

@ -50,6 +50,16 @@ static int action_bind_sublabel_core_settings_list(
return 0;
}
static int action_bind_sublabel_information_list_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_INFORMATION_LIST_LIST), len);
return 0;
}
static int action_bind_sublabel_cheevos_hardcore_mode_enable(
file_list_t *list,
unsigned type, unsigned i,
@ -477,7 +487,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
case MENU_ENUM_LABEL_INPUT_USER_16_BINDS:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_user_bind_settings);
break;
case MENU_ENUM_LABEL_INFORMATION_LIST:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_information_list_list);
break;
case MENU_ENUM_LABEL_NETPLAY:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_netplay_settings);
break;

View File

@ -1948,6 +1948,7 @@ enum msg_hash_enums
MENU_ENUM_LABEL_CB_UPDATE_SHADERS_GLSL,
MENU_ENUM_LABEL_CB_UPDATE_SHADERS_SLANG,
/* Sublabels */
MENU_ENUM_SUBLABEL_ADD_CONTENT_LIST,
MENU_ENUM_SUBLABEL_AUDIO_SETTINGS,
MENU_ENUM_SUBLABEL_BLUETOOTH_ENABLE,
@ -1956,6 +1957,7 @@ enum msg_hash_enums
MENU_ENUM_SUBLABEL_CORE_SETTINGS,
MENU_ENUM_SUBLABEL_CPU_CORES,
MENU_ENUM_SUBLABEL_FPS_SHOW,
MENU_ENUM_SUBLABEL_INFORMATION_LIST_LIST,
MENU_ENUM_SUBLABEL_INPUT_HOTKEY_BINDS,
MENU_ENUM_SUBLABEL_INPUT_MENU_ENUM_TOGGLE_GAMEPAD_COMBO,
MENU_ENUM_SUBLABEL_INPUT_SETTINGS,