| 39 | } |
| 40 | |
| 41 | bool 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 | |
| 64 | bool MacroConditionPluginState::Save(obs_data_t *obj) const |
| 65 | { |
nothing calls this directly
no test coverage detected