Slim down global_init_drivers - we can now get rid of the 'start'

function
This commit is contained in:
twinaphex 2013-11-01 21:10:42 +01:00
parent 17b69cbc29
commit 71a23ac18e
2 changed files with 4 additions and 14 deletions

View File

@ -440,24 +440,14 @@ retro_proc_address_t driver_get_proc_address(const char *sym)
void global_init_drivers(void)
{
unsigned i;
init_drivers_pre(); // Set driver.* function callbacks.
#if defined(HAVE_RGUI) || defined(HAVE_RMENU) || defined(HAVE_RMENU_XUI)
driver.video->start(); // Statically starts video driver. Sets driver.video_data.
#endif
find_audio_driver();
find_input_driver();
init_video_input();
for(i = 0; i < MAX_PLAYERS; i++)
if (driver.input->set_keybinds)
driver.input->set_keybinds(driver.input_data, g_settings.input.device[i], i, 0,
(1ULL << KEYBINDS_ACTION_SET_DEFAULT_BINDS));
#ifdef HAVE_OVERLAY
if (*g_settings.input.overlay)
{
driver.overlay = input_overlay_new(g_settings.input.overlay);
if (!driver.overlay)
RARCH_ERR("Failed to load overlay.\n");
}
#endif
}
void global_uninit_drivers(void)

View File

@ -2442,7 +2442,7 @@ static void gl_restart(void)
#ifdef HAVE_CG
gl_cg_invalidate_context();
#endif
gl_start();
init_video_input();
}
#endif