mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Further cleanups
This commit is contained in:
parent
f57675fa40
commit
7b61f1eb27
22
cheevos.c
22
cheevos.c
@ -1904,6 +1904,9 @@ void cheevos_populate_menu(menu_displaylist_info_t *info)
|
||||
|
||||
for (i = 0; cheevo < end; i++, cheevo++)
|
||||
{
|
||||
if (!cheevo)
|
||||
continue;
|
||||
|
||||
if (!cheevo->active)
|
||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||
}
|
||||
@ -1915,6 +1918,9 @@ void cheevos_populate_menu(menu_displaylist_info_t *info)
|
||||
|
||||
for (i = 0; cheevo < end; i++, cheevo++)
|
||||
{
|
||||
if (!cheevo)
|
||||
continue;
|
||||
|
||||
if (!cheevo->active)
|
||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||
}
|
||||
@ -1925,23 +1931,27 @@ void cheevos_populate_menu(menu_displaylist_info_t *info)
|
||||
menu_entries_push(info->list, "", "", MENU_SETTINGS_CHEEVOS_NONE, 0, 0);
|
||||
|
||||
cheevo = cheevos_locals.core.cheevos;
|
||||
end = cheevos_locals.core.cheevos + cheevos_locals.core.count;
|
||||
end = cheevos_locals.core.cheevos + cheevos_locals.core.count;
|
||||
|
||||
for (i = 0; cheevo < end; i++, cheevo++)
|
||||
{
|
||||
if (cheevo->active)
|
||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||
if (!cheevo || !cheevo->active)
|
||||
continue;
|
||||
|
||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||
}
|
||||
|
||||
if (settings->cheevos.test_unofficial)
|
||||
{
|
||||
cheevo = cheevos_locals.unofficial.cheevos;
|
||||
end = cheevos_locals.unofficial.cheevos + cheevos_locals.unofficial.count;
|
||||
end = cheevos_locals.unofficial.cheevos + cheevos_locals.unofficial.count;
|
||||
|
||||
for (i = 0; cheevo < end; i++, cheevo++)
|
||||
{
|
||||
if (cheevo->active)
|
||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||
if (!cheevo || !cheevo->active)
|
||||
continue;
|
||||
|
||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user