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:
Themaister 2013-05-07 01:52:53 +02:00
parent 3b06905329
commit a9d322350b
3 changed files with 7 additions and 16 deletions

View File

@ -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

View File

@ -379,7 +379,6 @@ struct global
struct retro_hw_render_callback hw_render_callback;
core_option_manager_t *core_options;
} system;
struct

View File

@ -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;
}