This commit is contained in:
twinaphex 2016-02-07 17:39:10 +01:00
parent 496a69c796
commit a1ee49bf1d

View File

@ -549,24 +549,6 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
*num_infos = supported;
}
static core_info_t *core_info_find(core_info_list_t *list,
const char *core)
{
size_t i;
for (i = 0; i < list->count; i++)
{
core_info_t *info = (core_info_t*)&list->list[i];
if (!info || !info->path)
continue;
if (string_is_equal(info->path, core))
return info;
}
return NULL;
}
core_info_t *core_info_get(core_info_list_t *list, size_t i)
{
core_info_t *info = NULL;
@ -580,6 +562,24 @@ core_info_t *core_info_get(core_info_list_t *list, size_t i)
return info;
}
static core_info_t *core_info_find(core_info_list_t *list,
const char *core)
{
size_t i;
for (i = 0; i < list->count; i++)
{
core_info_t *info = core_info_get(list, i);
if (!info)
continue;
if (string_is_equal(info->path, core))
return info;
}
return NULL;
}
static bool core_info_list_update_missing_firmware(
core_info_list_t *core_info_list,