mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
Get rid of global driver init/uninit bullshit - we're going to do
console initing/deiniting properly once and for all
This commit is contained in:
parent
839c121ecd
commit
d70b8a0f15
16
driver.c
16
driver.c
@ -501,22 +501,6 @@ bool driver_update_system_av_info(const struct retro_system_av_info *info)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only called once on init and deinit.
|
|
||||||
// Video and input drivers need to be active (owned)
|
|
||||||
// before retroarch core starts.
|
|
||||||
// Core handles audio.
|
|
||||||
|
|
||||||
void global_init_drivers(void)
|
|
||||||
{
|
|
||||||
init_drivers_pre();
|
|
||||||
init_drivers();
|
|
||||||
}
|
|
||||||
|
|
||||||
void global_uninit_drivers(void)
|
|
||||||
{
|
|
||||||
uninit_drivers();
|
|
||||||
}
|
|
||||||
|
|
||||||
void init_drivers(void)
|
void init_drivers(void)
|
||||||
{
|
{
|
||||||
driver.video_data_own = !driver.video_data;
|
driver.video_data_own = !driver.video_data;
|
||||||
|
3
driver.h
3
driver.h
@ -546,9 +546,6 @@ void init_drivers(void);
|
|||||||
void init_drivers_pre(void);
|
void init_drivers_pre(void);
|
||||||
void uninit_drivers(void);
|
void uninit_drivers(void);
|
||||||
|
|
||||||
void global_init_drivers(void);
|
|
||||||
void global_uninit_drivers(void);
|
|
||||||
|
|
||||||
void init_video_input(void);
|
void init_video_input(void);
|
||||||
void uninit_video_input(void);
|
void uninit_video_input(void);
|
||||||
void init_audio(void);
|
void init_audio(void);
|
||||||
|
@ -44,13 +44,6 @@ static void rarch_get_environment_console(void)
|
|||||||
path_mkdir(default_paths.savestate_dir);
|
path_mkdir(default_paths.savestate_dir);
|
||||||
path_mkdir(default_paths.sram_dir);
|
path_mkdir(default_paths.sram_dir);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
config_load();
|
|
||||||
|
|
||||||
init_libretro_sym(false);
|
|
||||||
rarch_init_system_info();
|
|
||||||
|
|
||||||
global_init_drivers();
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -307,7 +300,6 @@ void main_exit(args_type() args)
|
|||||||
if (g_extern.main_is_init)
|
if (g_extern.main_is_init)
|
||||||
rarch_main_deinit();
|
rarch_main_deinit();
|
||||||
rarch_deinit_msg_queue();
|
rarch_deinit_msg_queue();
|
||||||
global_uninit_drivers();
|
|
||||||
|
|
||||||
#ifdef PERF_TEST
|
#ifdef PERF_TEST
|
||||||
rarch_perf_log();
|
rarch_perf_log();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user