yolobs-studio/UI/frontend-plugins/frontend-tools/frontend-tools.c

42 lines
763 B
C
Raw Normal View History

2016-10-10 19:01:40 +00:00
#include <obs-module.h>
2017-04-15 19:02:06 +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")
2017-04-15 19:02:06 +00:00
#if defined(_WIN32) || defined(__APPLE__)
2016-10-10 19:01:40 +00:00
void InitSceneSwitcher();
void FreeSceneSwitcher();
2017-04-15 19:02:06 +00:00
#endif
#if defined(_WIN32) && BUILD_CAPTIONS
void InitCaptions();
void FreeCaptions();
#endif
void InitOutputTimer();
void FreeOutputTimer();
2016-10-10 19:01:40 +00:00
bool obs_module_load(void)
{
2017-04-15 19:02:06 +00:00
#if defined(_WIN32) || defined(__APPLE__)
2016-10-10 19:01:40 +00:00
InitSceneSwitcher();
2017-04-15 19:02:06 +00:00
#endif
#if defined(_WIN32) && BUILD_CAPTIONS
InitCaptions();
#endif
InitOutputTimer();
2016-10-10 19:01:40 +00:00
return true;
}
void obs_module_unload(void)
{
2017-04-15 19:02:06 +00:00
#if defined(_WIN32) || defined(__APPLE__)
2016-10-10 19:01:40 +00:00
FreeSceneSwitcher();
2017-04-15 19:02:06 +00:00
#endif
#if defined(_WIN32) && BUILD_CAPTIONS
FreeCaptions();
#endif
FreeOutputTimer();
2016-10-10 19:01:40 +00:00
}