frontend-tools.c 616 B

1234567891011121314151617181920212223242526272829303132333435
  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. bool obs_module_load(void)
  14. {
  15. #if defined(_WIN32) && BUILD_CAPTIONS
  16. InitCaptions();
  17. #endif
  18. InitSceneSwitcher();
  19. InitOutputTimer();
  20. return true;
  21. }
  22. void obs_module_unload(void)
  23. {
  24. #if defined(_WIN32) && BUILD_CAPTIONS
  25. FreeCaptions();
  26. #endif
  27. FreeSceneSwitcher();
  28. FreeOutputTimer();
  29. }