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

Method AddPatchCable

Source/PatchCableSource.cpp:84–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84PatchCable* PatchCableSource::AddPatchCable(IClickable* target)
85{
86 for (auto cable : mPatchCables)
87 {
88 if (cable != nullptr && cable->GetTarget() == target)
89 return nullptr;
90 }
91
92 PatchCable* cable = new PatchCable(this);
93 mPatchCables.push_back(cable);
94
95 if (target)
96 SetPatchCableTarget(cable, target, false);
97
98 return cable;
99}
100
101void PatchCableSource::SetPatchCableTarget(PatchCable* cable, IClickable* target, bool fromUserClick)
102{

Callers 5

SetUpFromSaveDataMethod · 0.80
SetUpFromSaveDataMethod · 0.80
SetUpPatchCablesMethod · 0.80
AddSnapshotTargetMethod · 0.80
LoadStateMethod · 0.80

Calls 1

GetTargetMethod · 0.45

Tested by

no test coverage detected