Merge yabridge-group.exe and yabridge-host.exe

They were 95% the same, so this makes a lot more sense this way. When
group host processes were introduced yabridge only did VST2 bridging,
but we already have a plugin type argument anyways so might as well
reuse that for group hosts.
This commit is contained in:
Robbert van der Helm
2022-04-16 23:26:24 +02:00
parent 4d9e865dd3
commit b3efcf4e06
14 changed files with 54 additions and 390 deletions
+3 -3
View File
@@ -36,15 +36,15 @@ void* find_plugin_library(const std::string& name) {
// `dlopen()` for distro packaged versions of yabridge
const std::vector<fs::path> search_path = get_augmented_search_path();
if (const auto& yabridge_host_path =
search_in_path(search_path, yabridge_individual_host_name)) {
search_in_path(search_path, yabridge_host_name)) {
const fs::path candidate = yabridge_host_path->parent_path() / name;
if (fs::exists(candidate)) {
return dlopen(candidate.c_str(), RTLD_LAZY | RTLD_LOCAL);
}
}
if (const auto& yabridge_host_32_path = search_in_path(
search_path, yabridge_individual_host_name_32bit)) {
if (const auto& yabridge_host_32_path =
search_in_path(search_path, yabridge_host_name_32bit)) {
const fs::path candidate =
yabridge_host_32_path->parent_path() / name;
if (fs::exists(candidate)) {