mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(Menu) Selectively hide Settings -> Accessibility
This commit is contained in:
parent
2d31377ba8
commit
ecbbf1e3bb
@ -4746,13 +4746,30 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct
|
|||||||
break;
|
break;
|
||||||
case DISPLAYLIST_ACCESSIBILITY_SETTINGS_LIST:
|
case DISPLAYLIST_ACCESSIBILITY_SETTINGS_LIST:
|
||||||
{
|
{
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
menu_displaylist_build_info_selective_t build_list[] = {
|
menu_displaylist_build_info_selective_t build_list[] = {
|
||||||
{MENU_ENUM_LABEL_ACCESSIBILITY_ENABLED, PARSE_ONLY_BOOL, true },
|
{MENU_ENUM_LABEL_ACCESSIBILITY_ENABLED, PARSE_ONLY_BOOL, true },
|
||||||
{MENU_ENUM_LABEL_ACCESSIBILITY_NARRATOR_SPEECH_SPEED, PARSE_ONLY_UINT, true },
|
{MENU_ENUM_LABEL_ACCESSIBILITY_NARRATOR_SPEECH_SPEED, PARSE_ONLY_UINT, false },
|
||||||
};
|
};
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(build_list); i++)
|
for (i = 0; i < ARRAY_SIZE(build_list); i++)
|
||||||
{
|
{
|
||||||
|
switch (build_list[i].enum_idx)
|
||||||
|
{
|
||||||
|
case MENU_ENUM_LABEL_ACCESSIBILITY_NARRATOR_SPEECH_SPEED:
|
||||||
|
if (settings->bools.accessibility_enable)
|
||||||
|
build_list[i].checked = true;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (i = 0; i < ARRAY_SIZE(build_list); i++)
|
||||||
|
{
|
||||||
|
if (!build_list[i].checked && !include_everything)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
build_list[i].enum_idx, build_list[i].parse_type,
|
build_list[i].enum_idx, build_list[i].parse_type,
|
||||||
false) == 0)
|
false) == 0)
|
||||||
|
@ -13985,6 +13985,9 @@ static bool setting_append_list(
|
|||||||
general_write_handler,
|
general_write_handler,
|
||||||
general_read_handler,
|
general_read_handler,
|
||||||
SD_FLAG_NONE);
|
SD_FLAG_NONE);
|
||||||
|
(*list)[list_info->index - 1].action_ok = setting_bool_action_left_with_refresh;
|
||||||
|
(*list)[list_info->index - 1].action_left = setting_bool_action_left_with_refresh;
|
||||||
|
(*list)[list_info->index - 1].action_right = setting_bool_action_right_with_refresh;
|
||||||
|
|
||||||
CONFIG_UINT(
|
CONFIG_UINT(
|
||||||
list, list_info,
|
list, list_info,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user