Automatically hide the "Configuration Override options" Quick Menu entry if neither of the sub-options are enabled.

This commit is contained in:
Mikael Brunnhede 2018-05-04 10:18:22 +02:00
parent b2ceb50897
commit 1bc304b26e

View File

@ -2758,11 +2758,16 @@ static int menu_displaylist_parse_load_content_settings(
}
}
if ((settings->bools.quick_menu_show_save_core_overrides ||
settings->bools.quick_menu_show_save_game_overrides) &&
!settings->bools.kiosk_mode_enable)
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QUICK_MENU_OVERRIDE_OPTIONS),
msg_hash_to_str(MENU_ENUM_LABEL_QUICK_MENU_OVERRIDE_OPTIONS),
MENU_ENUM_LABEL_QUICK_MENU_OVERRIDE_OPTIONS,
MENU_SETTING_ACTION, 0, 0);
}
#ifdef HAVE_CHEEVOS