コード例 #1
0
ファイル: dynamic.c プロジェクト: HahPagan/RetroArch
/**
 * uninit_libretro_sym:
 *
 * Frees libretro core.
 *
 * Frees all core options,
 * associated state, and
 * unbind all libretro callback symbols.
 **/
void uninit_libretro_sym(void)
{
   driver_t            *driver = driver_get_ptr();

#ifdef HAVE_DYNAMIC
   if (lib_handle)
      dylib_close(lib_handle);
   lib_handle = NULL;
#endif

   pretro_init = NULL;
   pretro_deinit = NULL;
   pretro_api_version = NULL;
   pretro_get_system_info = NULL;
   pretro_get_system_av_info = NULL;
   pretro_set_environment = NULL;
   pretro_set_video_refresh = NULL;
   pretro_set_audio_sample = NULL;
   pretro_set_audio_sample_batch = NULL;
   pretro_set_input_poll = NULL;
   pretro_set_input_state = NULL;
   pretro_set_controller_port_device = NULL;
   pretro_reset = NULL;
   pretro_run = NULL;
   pretro_serialize_size = NULL;
   pretro_serialize = NULL;
   pretro_unserialize = NULL;
   pretro_cheat_reset = NULL;
   pretro_cheat_set = NULL;
   pretro_load_game = NULL;
   pretro_load_game_special = NULL;
   pretro_unload_game = NULL;
   pretro_get_region = NULL;
   pretro_get_memory_data = NULL;
   pretro_get_memory_size = NULL;

   rarch_system_info_free();

   driver->camera_active   = false;
   driver->location_active = false;

   /* Performance counters no longer valid. */
   retro_perf_clear();
}
コード例 #2
0
ファイル: dynamic.c プロジェクト: AkimanBengus/RetroArch
/**
 * uninit_libretro_sym:
 *
 * Frees libretro core.
 *
 * Frees all core options,
 * associated state, and
 * unbind all libretro callback symbols.
 **/
void uninit_libretro_sym(void)
{
#ifdef HAVE_DYNAMIC
   if (lib_handle)
      dylib_close(lib_handle);
   lib_handle = NULL;
#endif

   core.retro_init                       = NULL;
   core.retro_deinit                     = NULL;
   core.retro_api_version                = NULL;
   core.retro_get_system_info            = NULL;
   core.retro_get_system_av_info         = NULL;
   core.retro_set_environment            = NULL;
   core.retro_set_video_refresh          = NULL;
   core.retro_set_audio_sample           = NULL;
   core.retro_set_audio_sample_batch     = NULL;
   core.retro_set_input_poll             = NULL;
   core.retro_set_input_state            = NULL;
   core.retro_set_controller_port_device = NULL;
   core.retro_reset                      = NULL;
   core.retro_run                        = NULL;
   core.retro_serialize_size             = NULL;
   core.retro_serialize                  = NULL;
   core.retro_unserialize                = NULL;
   core.retro_cheat_reset                = NULL;
   core.retro_cheat_set                  = NULL;
   core.retro_load_game                  = NULL;
   core.retro_load_game_special          = NULL;
   core.retro_unload_game                = NULL;
   core.retro_get_region                 = NULL;
   core.retro_get_memory_data            = NULL;
   core.retro_get_memory_size            = NULL;

   runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_FREE, NULL);
   camera_driver_ctl(RARCH_CAMERA_CTL_UNSET_ACTIVE, NULL);
   location_driver_ctl(RARCH_LOCATION_CTL_UNSET_ACTIVE, NULL);

   /* Performance counters no longer valid. */
   retro_perf_clear();
}