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

46 lines
711 B
C
Raw Normal View History

#include <obs-module.h>
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("frontend-tools", "en-US")
void InitSceneSwitcher();
void FreeSceneSwitcher();
2020-11-02 20:46:55 -08:00
#if defined(_WIN32)
void InitCaptions();
void FreeCaptions();
#endif
void InitOutputTimer();
void FreeOutputTimer();
#if defined(ENABLE_SCRIPTING)
void InitScripts();
void FreeScripts();
#endif
bool obs_module_load(void)
{
2020-11-02 20:46:55 -08:00
#if defined(_WIN32)
InitCaptions();
#endif
InitSceneSwitcher();
InitOutputTimer();
#if defined(ENABLE_SCRIPTING)
InitScripts();
#endif
return true;
}
void obs_module_unload(void)
{
2020-11-02 20:46:55 -08:00
#if defined(_WIN32)
FreeCaptions();
#endif
FreeSceneSwitcher();
FreeOutputTimer();
#if defined(ENABLE_SCRIPTING)
FreeScripts();
#endif
}