MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / LoadState

Method LoadState

Source/EventCanvas.cpp:429–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429void EventCanvas::LoadState(FileStreamIn& in, int rev)
430{
431 IDrawableModule::LoadState(in, rev);
432
433 if (ModularSynth::sLoadingFileSaveStateRev < 423)
434 in >> rev;
435 LoadStateValidate(rev <= GetModuleSaveStateRev());
436
437 int size;
438 in >> size;
439 mControlCables.resize(size);
440 for (auto cable : mControlCables)
441 {
442 std::string path;
443 in >> path;
444 cable->SetTarget(TheSynth->FindUIControl(path));
445 }
446
447 mCanvas->LoadState(in);
448}
449
450std::vector<IUIControl*> EventCanvas::ControlsToIgnoreInSaveState() const
451{

Callers

nothing calls this directly

Calls 4

LoadStateValidateFunction · 0.85
resizeMethod · 0.80
SetTargetMethod · 0.45
FindUIControlMethod · 0.45

Tested by

no test coverage detected