13
0

NO-OP: consolidate code (VST ID by name)

This commit is contained in:
Robin Gareus 2021-06-26 01:53:55 +02:00
parent 23c9d1b732
commit 4bd1e2e184
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -258,15 +258,17 @@ ARDOUR::find_plugin(Session& session, string identifier, PluginType type)
}
}
#ifdef WINDOWS_VST_SUPPORT
#if defined WINDOWS_VST_SUPPORT || defined LXVST_SUPPORT
/* hmm, we didn't find it. could be because in older versions of Ardour.
we used to store the name of a VST plugin, not its unique ID. so try
again.
*/
* we used to store the name of a VST plugin, not its unique ID. so try
* again.
*/
for (i = plugs.begin(); i != plugs.end(); ++i) {
if (identifier == (*i)->name){
return (*i)->load (session);
if (type == ARDOUR::LXVST || type == ARDOUR::Windows_VST) {
for (i = plugs.begin(); i != plugs.end(); ++i) {
if (identifier == (*i)->name){
return (*i)->load (session);
}
}
}
#endif
@ -283,15 +285,6 @@ ARDOUR::find_plugin(Session& session, string identifier, PluginType type)
if (identifier == (*i)->unique_id){
return (*i)->load (session);
}
#ifdef LXVST_SUPPORT
/* hmm, we didn't find it. could be because in older versions of Ardour.
we used to store the name of a VST plugin, not its unique ID. so try
again.
*/
for (i = plugs.begin(); i != plugs.end(); ++i) {
if (identifier == (*i)->name){
return (*i)->load (session);
}
}