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

Method FindModule

Source/ModularSynth.cpp:2646–2659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2644}
2645
2646IDrawableModule* ModularSynth::FindModule(std::string name, bool fail)
2647{
2648 if (name[0] == '$')
2649 {
2650 if (Prefab::sLoadingPrefab)
2651 {
2652 if (fail)
2653 throw UnknownModuleException(name);
2654 return nullptr;
2655 }
2656 return mModuleContainer.FindModule(name.substr(1, name.length() - 1), fail);
2657 }
2658 return mModuleContainer.FindModule(IClickable::sPathLoadContext + name, fail);
2659}
2660
2661MidiController* ModularSynth::FindMidiController(std::string name, bool fail)
2662{

Callers 15

SetUpFromSaveDataMethod · 0.45
SetUpFromSaveDataMethod · 0.45
SetUpFromSaveDataMethod · 0.45
SetUpFromSaveDataMethod · 0.45
LoadStateMethod · 0.45
SetUpFromSaveDataMethod · 0.45
SetUpFromSaveDataMethod · 0.45
SetUpFromSaveDataMethod · 0.45
oscMessageReceivedMethod · 0.45
SetUpFromSaveDataMethod · 0.45
SetUpFromSaveDataMethod · 0.45

Calls 2

lengthMethod · 0.80

Tested by 1

SetUpFromSaveDataMethod · 0.36