mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Refactor frontend_ctx_init_first
This commit is contained in:
parent
7dcbeef98f
commit
070147187d
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
const frontend_ctx_driver_t *frontend_ctx_init_first(void)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
const frontend_ctx_driver_t *frontend = NULL;
|
||||||
|
|
||||||
for (i = 0; frontend_ctx_drivers[i]; i++)
|
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
|
#ifndef IS_SALAMANDER
|
||||||
|
|
Loading…
Add table
Reference in a new issue