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

Function SaveVariables

lib/variables/variable.cpp:435–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void SaveVariables(obs_data_t *obj)
436{
437 OBSDataArrayAutoRelease variablesArray = obs_data_array_create();
438 for (const auto &v : variables) {
439 OBSDataAutoRelease array_obj = obs_data_create();
440 v->Save(array_obj);
441 obs_data_array_push_back(variablesArray, array_obj);
442 }
443
444 obs_data_set_array(obj, "variables", variablesArray);
445}
446
447void LoadVariables(obs_data_t *obj)
448{

Callers 1

setupFunction · 0.85

Calls 1

SaveMethod · 0.45

Tested by

no test coverage detected