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

Method LogAction

plugins/base/macro-action-projector.cpp:106–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void MacroActionProjector::LogAction() const
107{
108 if (_action == Action::CLOSE) {
109 ablog(LOG_INFO, "closing projector window \"%s\"",
110 _projectorWindowName.c_str());
111 return;
112 }
113
114 auto it = selectionTypes.find(_type);
115 if (it != selectionTypes.end()) {
116 ablog(LOG_INFO,
117 "open projector \"%s\" with"
118 "source \"%s\","
119 "scene \"%s\","
120 "monitor %d",
121 it->second.c_str(), _source.ToString(true).c_str(),
122 _scene.ToString(true).c_str(), _monitor);
123 } else {
124 blog(LOG_WARNING, "ignored unknown projector action %d",
125 static_cast<int>(_type));
126 }
127}
128
129bool MacroActionProjector::Save(obs_data_t *obj) const
130{

Callers

nothing calls this directly

Calls 4

findMethod · 0.80
c_strMethod · 0.45
endMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected