Force VST category to be "Instrument" for instruments.
This way it is picked up by the default PluginInfo::is_instrument() method.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user