mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-04 10:36:50 +00:00
(Menu) Hide achievement list if cheevos is disabled
This commit is contained in:
parent
7f1d91caa5
commit
bc44bf4d82
@ -1679,6 +1679,7 @@ static int menu_displaylist_parse_load_content_settings(menu_displaylist_info_t
|
||||
{
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
if (!menu)
|
||||
return -1;
|
||||
|
||||
@ -1745,10 +1746,11 @@ static int menu_displaylist_parse_load_content_settings(menu_displaylist_info_t
|
||||
MENU_SETTING_ACTION, 0, 0);
|
||||
#endif
|
||||
#ifdef HAVE_CHEEVOS
|
||||
menu_entries_push(info->list,
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_ACHIEVEMENT_LIST),
|
||||
menu_hash_to_str(MENU_LABEL_ACHIEVEMENT_LIST),
|
||||
MENU_SETTING_ACTION, 0, 0);
|
||||
if(settings->cheevos.enable)
|
||||
menu_entries_push(info->list,
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_ACHIEVEMENT_LIST),
|
||||
menu_hash_to_str(MENU_LABEL_ACHIEVEMENT_LIST),
|
||||
MENU_SETTING_ACTION, 0, 0);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user