| 225 | } |
| 226 | |
| 227 | bool 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 | |
| 247 | void InlineScript::ResolveVariablesToFixedValues() |
| 248 | { |
no test coverage detected