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

Method Save

lib/variables/variable-tab.cpp:475–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473}
474
475void VariableTable::Settings::Save(obs_data_t *data, const char *name)
476{
477 OBSDataAutoRelease settings = obs_data_create();
478 obs_data_set_int(settings, "searchType", static_cast<int>(searchType));
479 obs_data_set_string(settings, "searchString", searchString.c_str());
480 regex.Save(settings);
481 obs_data_set_obj(data, name, settings);
482}
483
484void VariableTable::Settings::Load(obs_data_t *data, const char *name)
485{

Callers 1

saveFunction · 0.45

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected