[yabridgectl] Warn for duplicate VST3 plugins

Since we can't have multiple plugins with the same name this way.
This commit is contained in:
Robbert van der Helm
2020-12-24 12:30:38 +01:00
parent 9d33cafd37
commit a3e76b3370
2 changed files with 37 additions and 12 deletions
+11 -1
View File
@@ -21,6 +21,7 @@ use anyhow::{Context, Result};
use lazy_static::lazy_static;
use rayon::prelude::*;
use std::collections::{BTreeMap, HashMap};
use std::fmt::Display;
use std::path::{Path, PathBuf};
use std::process::Command;
use walkdir::WalkDir;
@@ -177,12 +178,21 @@ impl Vst3Module {
}
/// The architecture of a `.dll` file. Needed so we can create a merged bundle for VST3 plugins.
#[derive(Debug, Clone, PartialEq, Eq, Copy)]
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Copy)]
pub enum LibArchitecture {
Dll32,
Dll64,
}
impl Display for LibArchitecture {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self {
LibArchitecture::Dll32 => write!(f, "32-bit"),
LibArchitecture::Dll64 => write!(f, "64-bit"),
}
}
}
impl LibArchitecture {
/// Get the corresponding VST3 architecture directory name. See
/// https://steinbergmedia.github.io/vst3_doc/vstinterfaces/vst3loc.html.