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

Method Load

lib/macro/macro-condition-tempvar.cpp:176–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176bool MacroConditionTempVar::Load(obs_data_t *obj)
177{
178 MacroCondition::Load(obj);
179 _tempVar.Load(obj, GetMacro());
180 _variable2 =
181 GetWeakVariableByName(obs_data_get_string(obj, "variableName"));
182 _strValue.Load(obj, "strValue");
183 _numValue = obs_data_get_double(obj, "numValue");
184 _type = static_cast<Condition>(obs_data_get_int(obj, "condition"));
185 _regex.Load(obj);
186 // TODO: remove in future version
187 if (obs_data_has_user_value(obj, "regex")) {
188 _regex.CreateBackwardsCompatibleRegex(
189 obs_data_get_bool(obj, "regex"));
190 }
191 return true;
192}
193
194std::string MacroConditionTempVar::GetShortDesc() const
195{

Callers

nothing calls this directly

Calls 3

GetMacroFunction · 0.85
GetWeakVariableByNameFunction · 0.85

Tested by

no test coverage detected