libobs: Only update symbols after plugins loaded

Reloading symbols after each plugin is causing the load times to
increase a fair bit on some computers, so do it after all plugins are
loaded instead.
master
jp9000 2015-09-29 12:16:46 -07:00
parent 8a0a28bf27
commit 7a15068d96
1 changed files with 4 additions and 3 deletions

View File

@ -114,9 +114,6 @@ int obs_open_module(obs_module_t **module, const char *path,
if (mod.set_locale)
mod.set_locale(obs->locale);
#ifdef _WIN32
reset_win32_symbol_paths();
#endif
return MODULE_SUCCESS;
}
@ -233,10 +230,14 @@ static void load_all_callback(void *param, const struct obs_module_info *info)
}
static const char *obs_load_all_modules_name = "obs_load_all_modules";
void obs_load_all_modules(void)
{
profile_start(obs_load_all_modules_name);
obs_find_modules(load_all_callback, NULL);
#ifdef _WIN32
reset_win32_symbol_paths();
#endif
profile_end(obs_load_all_modules_name);
}