mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
ModuleInterface::RegisterPlugin can report an error message
This commit is contained in:
@@ -539,14 +539,16 @@ wxArrayString ModuleManager::FindPluginsForProvider(const PluginID & providerID,
|
||||
return mDynModules[providerID]->FindPlugins(PluginManager::Get());
|
||||
}
|
||||
|
||||
bool ModuleManager::RegisterPlugin(const PluginID & providerID, const wxString & path)
|
||||
bool ModuleManager::RegisterPlugin(const PluginID & providerID, const wxString & path, wxString &errMsg)
|
||||
{
|
||||
errMsg.clear();
|
||||
if (mDynModules.find(providerID) == mDynModules.end())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return mDynModules[providerID]->RegisterPlugin(PluginManager::Get(), path);
|
||||
return mDynModules[providerID]->RegisterPlugin(PluginManager::Get(), path,
|
||||
errMsg);
|
||||
}
|
||||
|
||||
IdentInterface *ModuleManager::CreateProviderInstance(const PluginID & providerID,
|
||||
|
||||
Reference in New Issue
Block a user