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

Method LoadState

Source/GridSliders.cpp:233–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void GridSliders::LoadState(FileStreamIn& in, int rev)
234{
235 IDrawableModule::LoadState(in, rev);
236
237 if (ModularSynth::sLoadingFileSaveStateRev < 423)
238 in >> rev;
239 LoadStateValidate(rev <= GetModuleSaveStateRev());
240
241 int size;
242 in >> size;
243 for (int i = 0; i < size; ++i)
244 {
245 std::string path;
246 in >> path;
247 if (i < (int)mControlCables.size())
248 mControlCables[i]->SetTarget(TheSynth->FindUIControl(path));
249 }
250}

Callers

nothing calls this directly

Calls 4

LoadStateValidateFunction · 0.85
sizeMethod · 0.80
SetTargetMethod · 0.45
FindUIControlMethod · 0.45

Tested by

no test coverage detected