mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Add sublabel for 'Max Users'
This commit is contained in:
parent
d0d0c67d90
commit
7243561585
@ -2076,3 +2076,7 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_LOCATION_ALLOW,
|
||||
"Allow or disallow location services access by cores."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_INPUT_MAX_USERS,
|
||||
"Maximum amount of users supported by RetroArch."
|
||||
)
|
||||
|
@ -490,6 +490,17 @@ static int action_bind_sublabel_location_allow(
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int action_bind_sublabel_input_max_users(
|
||||
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_INPUT_MAX_USERS), len);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx)
|
||||
{
|
||||
@ -502,6 +513,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
||||
{
|
||||
switch (cbs->enum_idx)
|
||||
{
|
||||
case MENU_ENUM_LABEL_INPUT_MAX_USERS:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_input_max_users);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_LOCATION_ALLOW:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_location_allow);
|
||||
break;
|
||||
|
@ -451,7 +451,6 @@ enum msg_hash_enums
|
||||
MENU_ENUM_LABEL_INPUT_DRIVER_UDEV,
|
||||
MENU_ENUM_LABEL_INPUT_BIND_TIMEOUT,
|
||||
MENU_ENUM_LABEL_INPUT_TURBO_PERIOD,
|
||||
MENU_ENUM_LABEL_INPUT_MAX_USERS,
|
||||
MENU_ENUM_LABEL_INPUT_REMAP_BINDS_ENABLE,
|
||||
MENU_ENUM_LABEL_INPUT_AXIS_THRESHOLD,
|
||||
MENU_ENUM_LABEL_MENU_INPUT_SWAP_OK_CANCEL,
|
||||
@ -556,12 +555,16 @@ enum msg_hash_enums
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_BIND_DEFAULT_ALL,
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_SAVE_AUTOCONFIG,
|
||||
|
||||
MENU_ENUM_LABEL_INPUT_MAX_USERS,
|
||||
MENU_ENUM_SUBLABEL_INPUT_MAX_USERS,
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_MAX_USERS,
|
||||
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_USER_BINDS,
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_AUTODETECT_ENABLE,
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_DUTY_CYCLE,
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_DESCRIPTOR_LABEL_SHOW,
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_DESCRIPTOR_HIDE_UNBOUND,
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_MAX_USERS,
|
||||
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_REMAP_BINDS_ENABLE,
|
||||
MENU_ENUM_LABEL_VALUE_INPUT_AXIS_THRESHOLD,
|
||||
MENU_ENUM_LABEL_VALUE_MENU_INPUT_SWAP_OK_CANCEL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user