MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / CheckCondition

Method CheckCondition

plugins/base/macro-condition-plugin-state.cpp:41–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool MacroConditionPluginState::CheckCondition()
42{
43 switch (_condition) {
44 case Condition::PLUGIN_SCENE_CHANGE:
45 return MacroSwitchedScene();
46 case Condition::PLUGIN_RUNNING:
47 return true;
48 case Condition::OBS_SHUTDOWN:
49 return OBSIsShuttingDown();
50 case Condition::PLUGIN_START:
51 return IsFirstInterval();
52 case Condition::PLUGIN_RESTART:
53 return IsFirstIntervalAfterStop();
54 case Condition::SCENE_COLLECTION_CHANGE:
55 if (_firstCheckAfterSceneCollectionChange) {
56 _firstCheckAfterSceneCollectionChange = false;
57 return true;
58 }
59 return false;
60 }
61 return false;
62}
63
64bool MacroConditionPluginState::Save(obs_data_t *obj) const
65{

Callers

nothing calls this directly

Calls 4

MacroSwitchedSceneFunction · 0.85
OBSIsShuttingDownFunction · 0.50
IsFirstIntervalFunction · 0.50
IsFirstIntervalAfterStopFunction · 0.50

Tested by

no test coverage detected