mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +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++)
|
for (i = 0; cheevo < end; i++, cheevo++)
|
||||||
{
|
{
|
||||||
|
if (!cheevo)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!cheevo->active)
|
if (!cheevo->active)
|
||||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
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++)
|
for (i = 0; cheevo < end; i++, cheevo++)
|
||||||
{
|
{
|
||||||
|
if (!cheevo)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!cheevo->active)
|
if (!cheevo->active)
|
||||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
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);
|
menu_entries_push(info->list, "", "", MENU_SETTINGS_CHEEVOS_NONE, 0, 0);
|
||||||
|
|
||||||
cheevo = cheevos_locals.core.cheevos;
|
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++)
|
for (i = 0; cheevo < end; i++, cheevo++)
|
||||||
{
|
{
|
||||||
if (cheevo->active)
|
if (!cheevo || !cheevo->active)
|
||||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
continue;
|
||||||
|
|
||||||
|
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings->cheevos.test_unofficial)
|
if (settings->cheevos.test_unofficial)
|
||||||
{
|
{
|
||||||
cheevo = cheevos_locals.unofficial.cheevos;
|
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++)
|
for (i = 0; cheevo < end; i++, cheevo++)
|
||||||
{
|
{
|
||||||
if (cheevo->active)
|
if (!cheevo || !cheevo->active)
|
||||||
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
continue;
|
||||||
|
|
||||||
|
menu_entries_push(info->list, cheevo->title, cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user