Further cleanups

This commit is contained in:
twinaphex 2015-11-08 18:05:58 +01:00
parent f57675fa40
commit 7b61f1eb27

View File

@ -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);
} }
@ -1929,7 +1935,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->active) if (!cheevo || !cheevo->active)
continue;
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);
} }
@ -1940,7 +1948,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->active) if (!cheevo || !cheevo->active)
continue;
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);
} }
} }