mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 22:38:34 +00:00
core_info_resolve_all_extensions - cleanup
This commit is contained in:
parent
72ac1bd407
commit
e866c213b0
20
core_info.c
20
core_info.c
@ -45,17 +45,17 @@ static void core_info_list_resolve_all_extensions(
|
||||
if (all_ext_len)
|
||||
core_info_list->all_ext = (char*)calloc(1, all_ext_len);
|
||||
|
||||
if (core_info_list->all_ext)
|
||||
{
|
||||
for (i = 0; i < core_info_list->count; i++)
|
||||
{
|
||||
if (!core_info_list->list[i].supported_extensions)
|
||||
continue;
|
||||
if (!core_info_list->all_ext)
|
||||
return;
|
||||
|
||||
strlcat(core_info_list->all_ext,
|
||||
core_info_list->list[i].supported_extensions, all_ext_len);
|
||||
strlcat(core_info_list->all_ext, "|", all_ext_len);
|
||||
}
|
||||
for (i = 0; i < core_info_list->count; i++)
|
||||
{
|
||||
if (!core_info_list->list[i].supported_extensions)
|
||||
continue;
|
||||
|
||||
strlcat(core_info_list->all_ext,
|
||||
core_info_list->list[i].supported_extensions, all_ext_len);
|
||||
strlcat(core_info_list->all_ext, "|", all_ext_len);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user