mirror of
https://github.com/libretro/RetroArch
synced 2025-01-27 21:35:25 +00:00
Cleanups
This commit is contained in:
parent
496a69c796
commit
a1ee49bf1d
36
core_info.c
36
core_info.c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user