2016-10-10 19:01:40 +00:00
|
|
|
#include <obs-module.h>
|
2017-04-19 19:54:15 +00:00
|
|
|
#include "frontend-tools-config.h"
|
2016-10-10 19:01:40 +00:00
|
|
|
|
|
|
|
OBS_DECLARE_MODULE()
|
|
|
|
OBS_MODULE_USE_DEFAULT_LOCALE("frontend-tools", "en-US")
|
|
|
|
|
|
|
|
void InitSceneSwitcher();
|
|
|
|
void FreeSceneSwitcher();
|
2017-04-19 19:54:15 +00:00
|
|
|
|
|
|
|
#if defined(_WIN32) && BUILD_CAPTIONS
|
|
|
|
void InitCaptions();
|
|
|
|
void FreeCaptions();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void InitOutputTimer();
|
|
|
|
void FreeOutputTimer();
|
2016-10-10 19:01:40 +00:00
|
|
|
|
2018-02-19 19:54:37 +00:00
|
|
|
#if ENABLE_SCRIPTING
|
|
|
|
void InitScripts();
|
|
|
|
void FreeScripts();
|
|
|
|
#endif
|
|
|
|
|
2016-10-10 19:01:40 +00:00
|
|
|
bool obs_module_load(void)
|
|
|
|
{
|
2017-04-19 19:54:15 +00:00
|
|
|
#if defined(_WIN32) && BUILD_CAPTIONS
|
|
|
|
InitCaptions();
|
|
|
|
#endif
|
2017-06-29 19:01:10 +00:00
|
|
|
InitSceneSwitcher();
|
2017-04-19 19:54:15 +00:00
|
|
|
InitOutputTimer();
|
2018-02-19 19:54:37 +00:00
|
|
|
#if ENABLE_SCRIPTING
|
|
|
|
InitScripts();
|
|
|
|
#endif
|
2016-10-10 19:01:40 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void obs_module_unload(void)
|
|
|
|
{
|
2017-04-19 19:54:15 +00:00
|
|
|
#if defined(_WIN32) && BUILD_CAPTIONS
|
|
|
|
FreeCaptions();
|
|
|
|
#endif
|
2017-06-29 19:01:10 +00:00
|
|
|
FreeSceneSwitcher();
|
2017-04-19 19:54:15 +00:00
|
|
|
FreeOutputTimer();
|
2018-02-19 19:54:37 +00:00
|
|
|
#if ENABLE_SCRIPTING
|
|
|
|
FreeScripts();
|
|
|
|
#endif
|
2016-10-10 19:01:40 +00:00
|
|
|
}
|