mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(menu_displaylist.c) Cleanups
This commit is contained in:
parent
167ddb75ef
commit
a87b674ab7
@ -201,13 +201,18 @@ static void menu_displaylist_parse_drive_list(file_list_t *list)
|
||||
static int menu_displaylist_parse_core_info(menu_displaylist_info_t *info)
|
||||
{
|
||||
unsigned i;
|
||||
char tmp[PATH_MAX_LENGTH] = {0};
|
||||
settings_t *settings = config_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
core_info_t *core_info = (core_info_t*)global->core_info_current;
|
||||
core_info_t *core_info = global ? (core_info_t*)global->core_info_current : NULL;
|
||||
|
||||
if (core_info && core_info->data)
|
||||
if (!core_info || !core_info->data)
|
||||
{
|
||||
char tmp[PATH_MAX_LENGTH] = {0};
|
||||
menu_list_push(info->list,
|
||||
"No information available.", "",
|
||||
0, 0, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
snprintf(tmp, sizeof(tmp), "Core name: %s",
|
||||
core_info->core_name ? core_info->core_name : "");
|
||||
@ -323,11 +328,6 @@ static int menu_displaylist_parse_core_info(menu_displaylist_info_t *info)
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
menu_list_push(info->list,
|
||||
"No information available.", "",
|
||||
0, 0, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user