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

Method LoadSettings

lib/general.cpp:523–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523void SwitcherData::LoadSettings(obs_data_t *obj)
524{
525 if (!obj) {
526 return;
527 }
528
529 // New post load steps to be declared during load
530 ClearPostLoadSteps();
531
532 // Needs to be loaded before any entries which might rely on scene group
533 // selections to be available.
534 loadSceneGroups(obj);
535
536 RunLoadSteps(obj);
537
538 LoadMacros(obj);
539 LoadGlobalMacroSettings(obj);
540 loadWindowTitleSwitches(obj);
541 loadScreenRegionSwitches(obj);
542 loadPauseSwitches(obj);
543 loadSceneSequenceSwitches(obj);
544 loadSceneTransitions(obj);
545 loadIdleSwitches(obj);
546 loadExecutableSwitches(obj);
547 loadRandomSwitches(obj);
548 loadFileSwitches(obj);
549 loadMediaSwitches(obj);
550 loadTimeSwitches(obj);
551 loadAudioSwitches(obj);
552 loadVideoSwitches(obj);
553 LoadGeneralSettings(obj);
554 LoadHotkeys(obj);
555 LoadUISettings(obj);
556
557 RunAndClearPostLoadSteps();
558
559 // Reset on startup and scene collection change
560 ResetLastOpenedTab();
561 startupLoadDone = true;
562}
563
564void SwitcherData::SaveSettings(obs_data_t *obj)
565{

Callers 3

SaveSceneSwitcherFunction · 0.80
LoadPluginSettingsFunction · 0.80

Calls 6

LoadMacrosFunction · 0.85
LoadGlobalMacroSettingsFunction · 0.85
ResetLastOpenedTabFunction · 0.85
ClearPostLoadStepsFunction · 0.50
RunLoadStepsFunction · 0.50
RunAndClearPostLoadStepsFunction · 0.50

Tested by

no test coverage detected