summaryrefslogtreecommitdiff
path: root/libs/ardour/plugin_manager.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-11-07 23:05:54 +0100
committerRobin Gareus <robin@gareus.org>2018-11-07 23:05:54 +0100
commitbc83e6f75334e3493d70635ff1060a1798430456 (patch)
treefcc6001fa42ff59a9d19e6394383ca373c56e4c4 /libs/ardour/plugin_manager.cc
parent0b9c648e490a786adfaab813b27092912506a1b2 (diff)
Force VST category to be "Instrument" for instruments.
This way it is picked up by the default PluginInfo::is_instrument() method.
Diffstat (limited to 'libs/ardour/plugin_manager.cc')
-rw-r--r--libs/ardour/plugin_manager.cc18
1 files changed, 15 insertions, 3 deletions
diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc
index d5d98cb54f..aa151aa975 100644
--- a/libs/ardour/plugin_manager.cc
+++ b/libs/ardour/plugin_manager.cc
@@ -1015,7 +1015,11 @@ PluginManager::windows_vst_discover (string path, bool cache_only)
snprintf (buf, sizeof (buf), "%d", finfo->UniqueID);
info->unique_id = buf;
- info->category = finfo->Category;
+ if (finfo->isInstrument) {
+ info->category = X_("Instrument");
+ } else {
+ info->category = finfo->Category;
+ }
info->path = path;
info->creator = finfo->creator;
info->index = 0;
@@ -1155,7 +1159,11 @@ PluginManager::mac_vst_discover (string path, bool cache_only)
snprintf (buf, sizeof (buf), "%d", finfo->UniqueID);
info->unique_id = buf;
- info->category = finfo->Category;
+ if (finfo->isInstrument) {
+ info->category = X_("Instrument");
+ } else {
+ info->category = finfo->Category;
+ }
info->path = path;
info->creator = finfo->creator;
info->index = 0;
@@ -1277,7 +1285,11 @@ PluginManager::lxvst_discover (string path, bool cache_only)
snprintf (buf, sizeof (buf), "%d", finfo->UniqueID);
info->unique_id = buf;
- info->category = finfo->Category;
+ if (finfo->isInstrument) {
+ info->category = X_("Instrument");
+ } else {
+ info->category = finfo->Category;
+ }
info->path = path;
info->creator = finfo->creator;
info->index = 0;