754 |
std::set<EngineChannel*> InstrumentResourceManager::GetEngineChannelsUsingScriptSourceCode(const String& code, bool bLock) { |
std::set<EngineChannel*> InstrumentResourceManager::GetEngineChannelsUsingScriptSourceCode(const String& code, bool bLock) { |
755 |
if (bLock) Lock(); |
if (bLock) Lock(); |
756 |
std::set<EngineChannel*> result; |
std::set<EngineChannel*> result; |
757 |
std::set<InstrumentScriptConsumer*> consumers = scripts.ConsumersOf(code); |
std::set<InstrumentScriptConsumer*> consumers = scripts.ConsumersOf({ |
758 |
|
.code = code, .wildcardPatchVars = true |
759 |
|
}); |
760 |
std::set<InstrumentScriptConsumer*>::iterator iter = consumers.begin(); |
std::set<InstrumentScriptConsumer*>::iterator iter = consumers.begin(); |
761 |
std::set<InstrumentScriptConsumer*>::iterator end = consumers.end(); |
std::set<InstrumentScriptConsumer*>::iterator end = consumers.end(); |
762 |
for (; iter != end; ++iter) { |
for (; iter != end; ++iter) { |