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

Function LoadVariables

lib/variables/variable.cpp:447–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447void LoadVariables(obs_data_t *obj)
448{
449 variables.clear();
450
451 OBSDataArrayAutoRelease variablesArray =
452 obs_data_get_array(obj, "variables");
453 size_t count = obs_data_array_count(variablesArray);
454
455 for (size_t i = 0; i < count; i++) {
456 OBSDataAutoRelease array_obj =
457 obs_data_array_item(variablesArray, i);
458 auto var = Variable::Create();
459 variables.emplace_back(var);
460 variables.back()->Load(array_obj);
461 }
462}
463
464static void signalImportedVariables(void *varsPtr)
465{

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected