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

Method Save

lib/utils/temp-variable.cpp:331–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void TempVariableRef::Save(obs_data_t *obj, Macro *macro,
332 const char *name) const
333{
334 OBSDataAutoRelease data = obs_data_create();
335 auto type = GetType();
336 obs_data_set_int(data, "type", static_cast<int>(type));
337 obs_data_set_int(data, "idx", GetIdx());
338 obs_data_set_string(data, "id", _id.c_str());
339 const auto segment = _segment.lock();
340 if (segment) {
341 obs_data_set_int(data, "depth", getDepth(segment.get(), macro));
342 }
343 obs_data_set_int(data, "version", 1);
344 obs_data_set_obj(obj, name, data);
345}
346
347void TempVariableRef::Load(obs_data_t *obj, Macro *macroPtr, const char *name)
348{

Callers

nothing calls this directly

Calls 4

GetTypeFunction · 0.85
getDepthFunction · 0.85
c_strMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected