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

Method IsPluginAvailable

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

Source from the content-addressed store, hash-verified

1357}
1358
1359bool PluginManager::IsPluginAvailable(const PluginDescriptor& plug)
1360{
1361 const auto& providerID = plug.GetProviderID();
1362 auto provider = ModuleManager::Get().CreateProviderInstance(providerID, wxEmptyString);
1363
1364 if (provider == nullptr)
1365 {
1366 wxLogWarning("Unable to find a provider for '%s'", providerID);
1367 return false;
1368 }
1369
1370 if (provider->CheckPluginExist(plug.GetPath()) == false)
1371 {
1372 wxLogWarning("Plugin '%s' does not exist", plug.GetID());
1373 return false;
1374 }
1375
1376 return true;
1377}
1378
1379PluginDescriptor & PluginManager::CreatePlugin(const PluginID & id,
1380 ComponentInterface *ident,

Callers

nothing calls this directly

Calls 5

GetFunction · 0.85
CheckPluginExistMethod · 0.45
GetPathMethod · 0.45
GetIDMethod · 0.45

Tested by

no test coverage detected