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

Method SaveState

Source/PatchCableSource.cpp:735–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735void PatchCableSource::SaveState(FileStreamOut& out)
736{
737 out << (int)mPatchCables.size();
738
739 for (int i = 0; i < mPatchCables.size(); ++i)
740 {
741 std::string path = "";
742 IClickable* target = mPatchCables[i]->GetTarget();
743 if (target)
744 path = target->Path();
745 out << path;
746 }
747}
748
749void PatchCableSource::LoadState(FileStreamIn& in)
750{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
PathMethod · 0.80
GetTargetMethod · 0.45

Tested by

no test coverage detected