mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
treat linux and windows VST plugins equivalent on session load
This commit is contained in:
parent
00b9774671
commit
918f34b009
1 changed files with 16 additions and 0 deletions
|
|
@ -973,6 +973,22 @@ PluginInsert::set_state(const XMLNode& node, int version)
|
||||||
|
|
||||||
boost::shared_ptr<Plugin> plugin = find_plugin (_session, prop->value(), type);
|
boost::shared_ptr<Plugin> plugin = find_plugin (_session, prop->value(), type);
|
||||||
|
|
||||||
|
/* treat linux and windows VST plugins equivalent if they have the same uniqeID
|
||||||
|
* allow to move sessions windows <> linux */
|
||||||
|
#ifdef LXVST_SUPPORT
|
||||||
|
if (plugin == 0 && type == ARDOUR::Windows_VST) {
|
||||||
|
type = ARDOUR::LXVST;
|
||||||
|
plugin = find_plugin (_session, prop->value(), type);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef WINDOWS_VST_SUPPORT
|
||||||
|
if (plugin == 0 && type == ARDOUR::LXVST) {
|
||||||
|
type = ARDOUR::Windows_VST;
|
||||||
|
plugin = find_plugin (_session, prop->value(), type);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (plugin == 0) {
|
if (plugin == 0) {
|
||||||
error << string_compose(
|
error << string_compose(
|
||||||
_("Found a reference to a plugin (\"%1\") that is unknown.\n"
|
_("Found a reference to a plugin (\"%1\") that is unknown.\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue