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

Method SaveState

Source/GridSliders.cpp:217–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void GridSliders::SaveState(FileStreamOut& out)
218{
219 out << GetModuleSaveStateRev();
220
221 IDrawableModule::SaveState(out);
222
223 out << (int)mControlCables.size();
224 for (auto cable : mControlCables)
225 {
226 std::string path = "";
227 if (cable->GetTarget())
228 path = cable->GetTarget()->Path();
229 out << path;
230 }
231}
232
233void GridSliders::LoadState(FileStreamIn& in, int rev)
234{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
PathMethod · 0.80
GetTargetMethod · 0.45

Tested by

no test coverage detected