mirror of
https://github.com/libretro/RetroArch
synced 2024-12-29 12:31:05 +00:00
Create core_uninit_symbols function
This commit is contained in:
parent
d98fad0d98
commit
3669d44de9
@ -1161,6 +1161,7 @@ static void command_event_deinit_core(bool reinit)
|
||||
|
||||
core_unload_game();
|
||||
core_unload();
|
||||
core_uninit_symbols();
|
||||
|
||||
if (reinit)
|
||||
{
|
||||
|
2
core.h
2
core.h
@ -180,6 +180,8 @@ void core_unset_input_descriptors(void);
|
||||
|
||||
bool core_uninit_libretro_callbacks(void);
|
||||
|
||||
void core_uninit_symbols(void);
|
||||
|
||||
void core_set_input_state(retro_ctx_input_state_info_t *info);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
@ -211,6 +211,11 @@ bool core_set_poll_type(unsigned *type)
|
||||
return true;
|
||||
}
|
||||
|
||||
void core_uninit_symbols(void)
|
||||
{
|
||||
uninit_libretro_sym(&core);
|
||||
}
|
||||
|
||||
bool core_init_symbols(enum rarch_core_type *type)
|
||||
{
|
||||
if (!type)
|
||||
@ -329,10 +334,10 @@ bool core_init(void)
|
||||
bool core_unload(void)
|
||||
{
|
||||
core.retro_deinit();
|
||||
uninit_libretro_sym(&core);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool core_unload_game(void)
|
||||
{
|
||||
video_driver_deinit_hw_context();
|
||||
|
Loading…
Reference in New Issue
Block a user