mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
fixed the achievements list menu
This commit is contained in:
parent
8700450410
commit
c007298494
47
cheevos.c
47
cheevos.c
@ -1887,32 +1887,8 @@ void cheevos_populate_menu(menu_displaylist_info_t *info)
|
|||||||
const cheevo_t *end;
|
const cheevo_t *end;
|
||||||
cheevo_t *cheevo;
|
cheevo_t *cheevo;
|
||||||
|
|
||||||
RARCH_LOG("CHEEVOS POPULATING MENU");
|
|
||||||
|
|
||||||
menu_entries_push(info->list, "", "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
|
||||||
menu_entries_push(info->list, "Unlocked Achievements:", "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
menu_entries_push(info->list, "Unlocked Achievements:", "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||||
|
|
||||||
for (cheevo = cheevos_locals.core.cheevos, end = cheevos_locals.core.cheevos + cheevos_locals.core.count; cheevo < end; cheevo++)
|
|
||||||
{
|
|
||||||
if (cheevo->active)
|
|
||||||
{
|
|
||||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (config_get_ptr()->cheevos.test_unofficial)
|
|
||||||
{
|
|
||||||
for (cheevo = cheevos_locals.unofficial.cheevos, end = cheevos_locals.unofficial.cheevos + cheevos_locals.unofficial.count; cheevo < end; cheevo++)
|
|
||||||
{
|
|
||||||
if (cheevo->active)
|
|
||||||
{
|
|
||||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
menu_entries_push(info->list, "", "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
menu_entries_push(info->list, "", "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||||
menu_entries_push(info->list, "Locked Achievements:", "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
|
||||||
|
|
||||||
for (cheevo = cheevos_locals.core.cheevos, end = cheevos_locals.core.cheevos + cheevos_locals.core.count; cheevo < end; cheevo++)
|
for (cheevo = cheevos_locals.core.cheevos, end = cheevos_locals.core.cheevos + cheevos_locals.core.count; cheevo < end; cheevo++)
|
||||||
{
|
{
|
||||||
@ -1932,4 +1908,27 @@ void cheevos_populate_menu(menu_displaylist_info_t *info)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menu_entries_push(info->list, "", "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||||
|
menu_entries_push(info->list, "Locked Achievements:", "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||||
|
menu_entries_push(info->list, "", "", MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||||
|
|
||||||
|
for (cheevo = cheevos_locals.core.cheevos, end = cheevos_locals.core.cheevos + cheevos_locals.core.count; cheevo < end; cheevo++)
|
||||||
|
{
|
||||||
|
if (cheevo->active)
|
||||||
|
{
|
||||||
|
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config_get_ptr()->cheevos.test_unofficial)
|
||||||
|
{
|
||||||
|
for (cheevo = cheevos_locals.unofficial.cheevos, end = cheevos_locals.unofficial.cheevos + cheevos_locals.unofficial.count; cheevo < end; cheevo++)
|
||||||
|
{
|
||||||
|
if (cheevo->active)
|
||||||
|
{
|
||||||
|
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1744,7 +1744,7 @@ static int menu_displaylist_parse_load_content_settings(menu_displaylist_info_t
|
|||||||
menu_hash_to_str(MENU_LABEL_SHADER_OPTIONS),
|
menu_hash_to_str(MENU_LABEL_SHADER_OPTIONS),
|
||||||
MENU_SETTING_ACTION, 0, 0);
|
MENU_SETTING_ACTION, 0, 0);
|
||||||
#endif
|
#endif
|
||||||
#if 0
|
#ifdef HAVE_CHEEVOS
|
||||||
menu_entries_push(info->list,
|
menu_entries_push(info->list,
|
||||||
menu_hash_to_str(MENU_LABEL_VALUE_ACHIEVEMENT_LIST),
|
menu_hash_to_str(MENU_LABEL_VALUE_ACHIEVEMENT_LIST),
|
||||||
menu_hash_to_str(MENU_LABEL_ACHIEVEMENT_LIST),
|
menu_hash_to_str(MENU_LABEL_ACHIEVEMENT_LIST),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user