Create core_uninit_symbols function

This commit is contained in:
twinaphex 2016-07-23 07:06:32 +02:00
parent d98fad0d98
commit 3669d44de9
3 changed files with 9 additions and 1 deletions

View File

@ -1161,6 +1161,7 @@ static void command_event_deinit_core(bool reinit)
core_unload_game(); core_unload_game();
core_unload(); core_unload();
core_uninit_symbols();
if (reinit) if (reinit)
{ {

2
core.h
View File

@ -180,6 +180,8 @@ void core_unset_input_descriptors(void);
bool core_uninit_libretro_callbacks(void); bool core_uninit_libretro_callbacks(void);
void core_uninit_symbols(void);
void core_set_input_state(retro_ctx_input_state_info_t *info); void core_set_input_state(retro_ctx_input_state_info_t *info);
RETRO_END_DECLS RETRO_END_DECLS

View File

@ -211,6 +211,11 @@ bool core_set_poll_type(unsigned *type)
return true; return true;
} }
void core_uninit_symbols(void)
{
uninit_libretro_sym(&core);
}
bool core_init_symbols(enum rarch_core_type *type) bool core_init_symbols(enum rarch_core_type *type)
{ {
if (!type) if (!type)
@ -329,10 +334,10 @@ bool core_init(void)
bool core_unload(void) bool core_unload(void)
{ {
core.retro_deinit(); core.retro_deinit();
uninit_libretro_sym(&core);
return true; return true;
} }
bool core_unload_game(void) bool core_unload_game(void)
{ {
video_driver_deinit_hw_context(); video_driver_deinit_hw_context();