MCPcopy Create free account
hub / github.com/audacity/audacity / InitializePlugins

Method InitializePlugins

libraries/lib-module-manager/PluginManager.cpp:339–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void PluginManager::InitializePlugins()
340{
341 ModuleManager & moduleManager = ModuleManager::Get();
342 //ModuleManager::DiscoverProviders was called earlier, so we
343 //can be sure that providers are already loaded
344
345 //Check all known plugins to ensure they are still valid.
346 for (auto it = mRegisteredPlugins.begin(); it != mRegisteredPlugins.end();) {
347 auto &pluginDesc = it->second;
348 const auto pluginType = pluginDesc.GetPluginType();
349 if(pluginType == PluginTypeNone || pluginType == PluginTypeModule)
350 {
351 ++it;
352 continue;
353 }
354
355 if(!moduleManager.CheckPluginExist(pluginDesc.GetProviderID(), pluginDesc.GetPath()))
356 it = mRegisteredPlugins.erase(it);
357 else
358 ++it;
359 }
360
361 Save();
362}
363
364// ----------------------------------------------------------------------------
365// PluginManager implementation

Callers

nothing calls this directly

Calls 6

GetFunction · 0.85
GetPluginTypeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
CheckPluginExistMethod · 0.45
GetPathMethod · 0.45

Tested by

no test coverage detected