libobs: Add post-load module callback

This allows the ability for certain types of modules (particularly
scripting-related modules) to initialize extra data when all other
modules have loaded.  Because front-ends may wish to have custom
handling for loading modules, the front-end must manually call
obs_post_load_modules after it has completed loading all plug-in
modules.

Closes jp9000/obs-studio#965
This commit is contained in:
SammyJames
2017-07-14 23:26:53 -04:00
committed by jp9000
parent c354551484
commit 4fd66d4d1e
5 changed files with 18 additions and 0 deletions

View File

@@ -1317,6 +1317,8 @@ void OBSBasic::OBSInit()
obs_load_all_modules();
blog(LOG_INFO, "---------------------------------");
obs_log_loaded_modules();
blog(LOG_INFO, "---------------------------------");
obs_post_load_modules();
blog(LOG_INFO, STARTUP_SEPARATOR);