jp9000 0b01e4c7a1 frontend-tools: Add scripting tool
Adds a scripting tool that gives the users the ability to load scripts
and change their settings.
2018-01-04 11:37:43 -08:00

47 lines
773 B
C

#include <obs-module.h>
#include "frontend-tools-config.h"
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("frontend-tools", "en-US")
void InitSceneSwitcher();
void FreeSceneSwitcher();
#if defined(_WIN32) && BUILD_CAPTIONS
void InitCaptions();
void FreeCaptions();
#endif
void InitOutputTimer();
void FreeOutputTimer();
#if ENABLE_SCRIPTING
void InitScripts();
void FreeScripts();
#endif
bool obs_module_load(void)
{
#if defined(_WIN32) && BUILD_CAPTIONS
InitCaptions();
#endif
InitSceneSwitcher();
InitOutputTimer();
#if ENABLE_SCRIPTING
InitScripts();
#endif
return true;
}
void obs_module_unload(void)
{
#if defined(_WIN32) && BUILD_CAPTIONS
FreeCaptions();
#endif
FreeSceneSwitcher();
FreeOutputTimer();
#if ENABLE_SCRIPTING
FreeScripts();
#endif
}