Search for the group host when using plugin groups

This commit is contained in:
Robbert van der Helm
2020-05-22 14:00:45 +02:00
parent fea256655d
commit 27af0f8c11
4 changed files with 20 additions and 16 deletions
+5 -4
View File
@@ -111,11 +111,12 @@ PluginArchitecture find_vst_architecture(fs::path plugin_path) {
throw std::runtime_error(error_msg.str());
}
fs::path find_vst_host(PluginArchitecture plugin_arch) {
// TODO: Take plugin group settings into account
auto host_name = yabridge_individual_host_name;
fs::path find_vst_host(PluginArchitecture plugin_arch, bool use_plugin_groups) {
auto host_name = use_plugin_groups ? yabridge_group_host_name
: yabridge_individual_host_name;
if (plugin_arch == PluginArchitecture::vst_32) {
host_name = yabridge_individual_host_name_32bit;
host_name = use_plugin_groups ? yabridge_group_host_name_32bit
: yabridge_individual_host_name_32bit;
}
fs::path host_path =