| 174 | } |
| 175 | |
| 176 | bool 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 | |
| 194 | std::string MacroConditionTempVar::GetShortDesc() const |
| 195 | { |
nothing calls this directly
no test coverage detected