mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Refactor frontend_ctx_init_first
This commit is contained in:
parent
7dcbeef98f
commit
070147187d
@ -85,11 +85,15 @@ const frontend_ctx_driver_t *frontend_ctx_find_driver(const char *ident)
|
||||
const frontend_ctx_driver_t *frontend_ctx_init_first(void)
|
||||
{
|
||||
unsigned i;
|
||||
const frontend_ctx_driver_t *frontend = NULL;
|
||||
|
||||
for (i = 0; frontend_ctx_drivers[i]; i++)
|
||||
return frontend_ctx_drivers[i];
|
||||
{
|
||||
frontend = frontend_ctx_drivers[i];
|
||||
break;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return frontend;
|
||||
}
|
||||
|
||||
#ifndef IS_SALAMANDER
|
||||
|
Loading…
Reference in New Issue
Block a user