mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-03 07:45:50 -05:00
The "core" macro conditions and actions have been extracted out to the "base" plugin. The library now mostly contains functionality which is required across all plugins and (e.g. definitions for macro segments). The goal is to reduce the complexity and cross-dependencies and group the source files in a better way. This should relsove the "library limit of 65535 objects exceeded" build issue occuring in some Windows build environments.
29 lines
579 B
C
29 lines
579 B
C
#include <obs-module.h>
|
|
#include <obs-frontend-api.h>
|
|
|
|
OBS_DECLARE_MODULE()
|
|
OBS_MODULE_USE_DEFAULT_LOCALE("advanced-scene-switcher", "en-US")
|
|
|
|
typedef const char *(*translateFunc)(const char *);
|
|
|
|
void InitSceneSwitcher(obs_module_t *, translateFunc);
|
|
void RunPostLoadSteps();
|
|
void FreeSceneSwitcher();
|
|
|
|
void obs_module_post_load(void)
|
|
{
|
|
RunPostLoadSteps();
|
|
}
|
|
|
|
bool obs_module_load(void)
|
|
{
|
|
obs_frontend_push_ui_translation(obs_module_get_string);
|
|
InitSceneSwitcher(obs_current_module(), obs_module_text);
|
|
return true;
|
|
}
|
|
|
|
void obs_module_unload(void)
|
|
{
|
|
FreeSceneSwitcher();
|
|
}
|