2016-09-03 09:15:32 -07:00
|
|
|
#include <obs-module.h>
|
|
|
|
|
|
|
|
OBS_DECLARE_MODULE()
|
|
|
|
OBS_MODULE_USE_DEFAULT_LOCALE("frontend-tools", "en-US")
|
|
|
|
|
|
|
|
void InitSceneSwitcher();
|
|
|
|
void FreeSceneSwitcher();
|
2016-11-17 05:30:45 -08:00
|
|
|
|
2020-11-02 20:46:55 -08:00
|
|
|
#if defined(_WIN32)
|
2016-11-17 05:30:45 -08:00
|
|
|
void InitCaptions();
|
|
|
|
void FreeCaptions();
|
|
|
|
#endif
|
|
|
|
|
2016-09-21 01:51:18 -07:00
|
|
|
void InitOutputTimer();
|
|
|
|
void FreeOutputTimer();
|
2016-09-03 09:15:32 -07:00
|
|
|
|
2022-03-16 15:11:58 -07:00
|
|
|
#if defined(ENABLE_SCRIPTING)
|
2017-12-25 14:11:19 -08:00
|
|
|
void InitScripts();
|
|
|
|
void FreeScripts();
|
|
|
|
#endif
|
|
|
|
|
2016-09-03 09:15:32 -07:00
|
|
|
bool obs_module_load(void)
|
|
|
|
{
|
2020-11-02 20:46:55 -08:00
|
|
|
#if defined(_WIN32)
|
2016-11-17 05:30:45 -08:00
|
|
|
InitCaptions();
|
2016-09-21 01:51:18 -07:00
|
|
|
#endif
|
2017-05-03 03:44:10 -07:00
|
|
|
InitSceneSwitcher();
|
2016-09-21 01:51:18 -07:00
|
|
|
InitOutputTimer();
|
2022-03-16 15:11:58 -07:00
|
|
|
#if defined(ENABLE_SCRIPTING)
|
2017-12-25 14:11:19 -08:00
|
|
|
InitScripts();
|
|
|
|
#endif
|
2016-09-03 09:15:32 -07:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void obs_module_unload(void)
|
|
|
|
{
|
2020-11-02 20:46:55 -08:00
|
|
|
#if defined(_WIN32)
|
2016-11-17 05:30:45 -08:00
|
|
|
FreeCaptions();
|
2016-09-21 01:51:18 -07:00
|
|
|
#endif
|
2017-05-03 03:44:10 -07:00
|
|
|
FreeSceneSwitcher();
|
2016-09-21 01:51:18 -07:00
|
|
|
FreeOutputTimer();
|
2022-03-16 15:11:58 -07:00
|
|
|
#if defined(ENABLE_SCRIPTING)
|
2017-12-25 14:11:19 -08:00
|
|
|
FreeScripts();
|
|
|
|
#endif
|
2016-09-03 09:15:32 -07:00
|
|
|
}
|