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

Method Save

plugins/base/macro-action-scene-switch.cpp:233–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233bool MacroActionSwitchScene::Save(obs_data_t *obj) const
234{
235 MacroAction::Save(obj);
236 obs_data_set_int(obj, "action", static_cast<int>(_action));
237 obs_data_set_string(obj, "canvas", GetWeakCanvasName(_canvas).c_str());
238 _index.Save(obj, "index");
239 _scene.Save(obj);
240 _transition.Save(obj);
241 _duration.Save(obj);
242 obs_data_set_bool(obj, "blockUntilTransitionDone",
243 _blockUntilTransitionDone);
244 obs_data_set_int(obj, "sceneType", static_cast<int>(_sceneType));
245 return true;
246}
247
248bool MacroActionSwitchScene::Load(obs_data_t *obj)
249{

Callers 1

LoadMethod · 0.45

Calls 2

GetWeakCanvasNameFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected