1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-05 14:11:00 +01:00

Minimal error messages for failing to load non-Nyquist effects

This commit is contained in:
Paul Licameli
2017-12-27 15:09:24 -05:00
parent 0f8bd45a7c
commit eb3bc7e642
6 changed files with 29 additions and 10 deletions

View File

@@ -214,6 +214,7 @@ bool LadspaEffectsModule::RegisterPlugin(PluginManagerInterface & pm,
// causes duplicate menu entries to appear.
wxFileName ff(path);
if (ff.GetName().CmpNoCase(wxT("vst-bridge")) == 0) {
errMsg = _("Audacity no longer uses vst-bridge");
return false;
}
@@ -241,6 +242,11 @@ bool LadspaEffectsModule::RegisterPlugin(PluginManagerInterface & pm,
if (effect.SetHost(NULL)) {
pm.RegisterPlugin(this, &effect);
}
else {
// If pm.RegisterPlugin is skipped, be sure to report error
index = 0;
break;
}
}
}
}
@@ -257,6 +263,9 @@ bool LadspaEffectsModule::RegisterPlugin(PluginManagerInterface & pm,
wxSetWorkingDirectory(saveOldCWD);
hadpath ? wxSetEnv(wxT("PATH"), envpath) : wxUnsetEnv(wxT("PATH"));
if (index == 0)
errMsg = _("Could not load the library");
return index > 0;
}