NO-OP: consolidate code (VST ID by name)
This commit is contained in:
parent
23c9d1b732
commit
4bd1e2e184
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user