mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Create public function rarch_main_deinit_core
This commit is contained in:
parent
0ba903c727
commit
e84e7f61e0
@ -758,6 +758,7 @@ int rarch_main_init(int argc, char *argv[]);
|
|||||||
bool rarch_main_idle_iterate(void);
|
bool rarch_main_idle_iterate(void);
|
||||||
bool rarch_main_iterate(void);
|
bool rarch_main_iterate(void);
|
||||||
void rarch_main_deinit(void);
|
void rarch_main_deinit(void);
|
||||||
|
void rarch_main_deinit_core(void);
|
||||||
void rarch_render_cached_frame(void);
|
void rarch_render_cached_frame(void);
|
||||||
void rarch_init_msg_queue(void);
|
void rarch_init_msg_queue(void);
|
||||||
void rarch_deinit_msg_queue(void);
|
void rarch_deinit_msg_queue(void);
|
||||||
|
16
retroarch.c
16
retroarch.c
@ -3008,9 +3008,7 @@ int rarch_main_init(int argc, char *argv[])
|
|||||||
|
|
||||||
error:
|
error:
|
||||||
uninit_drivers();
|
uninit_drivers();
|
||||||
pretro_unload_game();
|
rarch_main_deinit_core();
|
||||||
pretro_deinit();
|
|
||||||
uninit_libretro_sym();
|
|
||||||
|
|
||||||
g_extern.main_is_init = false;
|
g_extern.main_is_init = false;
|
||||||
return 1;
|
return 1;
|
||||||
@ -3158,6 +3156,13 @@ bool rarch_main_iterate(void)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void rarch_main_deinit_core(void)
|
||||||
|
{
|
||||||
|
pretro_unload_game();
|
||||||
|
pretro_deinit();
|
||||||
|
uninit_libretro_sym();
|
||||||
|
}
|
||||||
|
|
||||||
void rarch_main_deinit(void)
|
void rarch_main_deinit(void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_NETPLAY
|
#ifdef HAVE_NETPLAY
|
||||||
@ -3194,9 +3199,8 @@ void rarch_main_deinit(void)
|
|||||||
save_auto_state();
|
save_auto_state();
|
||||||
|
|
||||||
uninit_drivers();
|
uninit_drivers();
|
||||||
pretro_unload_game();
|
|
||||||
pretro_deinit();
|
rarch_main_deinit_core();
|
||||||
uninit_libretro_sym();
|
|
||||||
|
|
||||||
if (g_extern.temporary_roms)
|
if (g_extern.temporary_roms)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user