mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Make init_core a bit more readable
This commit is contained in:
parent
3d1bef924e
commit
565a651810
26
retroarch.c
26
retroarch.c
@ -2001,16 +2001,13 @@ static void deinit_core(void)
|
||||
uninit_libretro_sym();
|
||||
}
|
||||
|
||||
static bool init_core(void)
|
||||
static bool init_content(void)
|
||||
{
|
||||
verify_api_version();
|
||||
pretro_init();
|
||||
/* No content to be loaded for dummy core,
|
||||
* just successfully exit. */
|
||||
if (g_extern.libretro_dummy)
|
||||
return true;
|
||||
|
||||
g_extern.use_sram = !g_extern.libretro_dummy &&
|
||||
!g_extern.libretro_no_content;
|
||||
|
||||
if (!g_extern.libretro_dummy)
|
||||
{
|
||||
if (!g_extern.libretro_no_content)
|
||||
fill_pathnames();
|
||||
|
||||
@ -2029,8 +2026,21 @@ static bool init_core(void)
|
||||
rarch_main_command(RARCH_CMD_BSV_MOVIE_INIT);
|
||||
rarch_main_command(RARCH_CMD_NETPLAY_INIT);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool init_core(void)
|
||||
{
|
||||
verify_api_version();
|
||||
pretro_init();
|
||||
|
||||
g_extern.use_sram = !g_extern.libretro_dummy &&
|
||||
!g_extern.libretro_no_content;
|
||||
|
||||
if (!init_content())
|
||||
return false;
|
||||
|
||||
retro_init_libretro_cbs(&driver.retro_ctx);
|
||||
init_system_av_info();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user