frontend-tools.c 773 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #include <obs-module.h>
  2. #include "frontend-tools-config.h"
  3. OBS_DECLARE_MODULE()
  4. OBS_MODULE_USE_DEFAULT_LOCALE("frontend-tools", "en-US")
  5. void InitSceneSwitcher();
  6. void FreeSceneSwitcher();
  7. #if defined(_WIN32) && BUILD_CAPTIONS
  8. void InitCaptions();
  9. void FreeCaptions();
  10. #endif
  11. void InitOutputTimer();
  12. void FreeOutputTimer();
  13. #if ENABLE_SCRIPTING
  14. void InitScripts();
  15. void FreeScripts();
  16. #endif
  17. bool obs_module_load(void)
  18. {
  19. #if defined(_WIN32) && BUILD_CAPTIONS
  20. InitCaptions();
  21. #endif
  22. InitSceneSwitcher();
  23. InitOutputTimer();
  24. #if ENABLE_SCRIPTING
  25. InitScripts();
  26. #endif
  27. return true;
  28. }
  29. void obs_module_unload(void)
  30. {
  31. #if defined(_WIN32) && BUILD_CAPTIONS
  32. FreeCaptions();
  33. #endif
  34. FreeSceneSwitcher();
  35. FreeOutputTimer();
  36. #if ENABLE_SCRIPTING
  37. FreeScripts();
  38. #endif
  39. }