mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
Clear out all of g_extern.system.
Should clear out all the silly bugs where some interfaces are not cleared out on reentrancy.
This commit is contained in:
parent
3b06905329
commit
a9d322350b
15
dynamic.c
15
dynamic.c
@ -403,15 +403,14 @@ void uninit_libretro_sym(void)
|
||||
lib_handle = NULL;
|
||||
#endif
|
||||
|
||||
if (g_extern.system.core_options)
|
||||
{
|
||||
core_option_flush(g_extern.system.core_options);
|
||||
core_option_free(g_extern.system.core_options);
|
||||
}
|
||||
|
||||
// No longer valid.
|
||||
memset(&g_extern.system.info, 0, sizeof(g_extern.system.info));
|
||||
memset(&g_extern.system.av_info, 0, sizeof(g_extern.system.av_info));
|
||||
memset(&g_extern.frame_cache, 0, sizeof(g_extern.frame_cache));
|
||||
memset(&g_extern.system.disk_control, 0, sizeof(g_extern.system.disk_control));
|
||||
g_extern.system.pix_fmt = RETRO_PIXEL_FORMAT_0RGB1555;
|
||||
g_extern.system.no_game = false;
|
||||
g_extern.system.shutdown = false;
|
||||
g_extern.system.key_event = NULL;
|
||||
memset(&g_extern.system, 0, sizeof(g_extern.system));
|
||||
}
|
||||
|
||||
#ifdef NEED_DYNAMIC
|
||||
|
@ -379,7 +379,6 @@ struct global
|
||||
struct retro_hw_render_callback hw_render_callback;
|
||||
|
||||
core_option_manager_t *core_options;
|
||||
|
||||
} system;
|
||||
|
||||
struct
|
||||
|
@ -3104,13 +3104,6 @@ void rarch_main_deinit(void)
|
||||
g_extern.rom_file_temporary = false;
|
||||
}
|
||||
|
||||
if (g_extern.system.core_options)
|
||||
{
|
||||
core_option_flush(g_extern.system.core_options);
|
||||
core_option_free(g_extern.system.core_options);
|
||||
}
|
||||
g_extern.system.core_options = NULL;
|
||||
|
||||
g_extern.main_is_init = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user