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

Method Run

plugins/scripting/utils/inline-script.cpp:227–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227bool InlineScript::Run()
228{
229 static auto sh = obs_get_signal_handler();
230
231 if (_type == INLINE && _lastResolvedText != std::string(GetText())) {
232 Setup();
233 }
234
235 if (_type == FILE && _lastPath != _file) {
236 Setup();
237 }
238
239 auto cd = calldata_create();
240 calldata_set_string(cd, "id", GetID().c_str());
241 signal_handler_signal(sh, signalName.data(), cd);
242 bool result = calldata_bool(cd, "result");
243 calldata_destroy(cd);
244 return result;
245}
246
247void InlineScript::ResolveVariablesToFixedValues()
248{

Callers 2

PerformActionMethod · 0.80
CheckConditionMethod · 0.80

Calls 2

c_strMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected