Revert "[yabridgectl] Handle non-lowercase file extensions"

This reverts commit eee3d218c1.

This sounded good in theory, but in practice this doesn't work, because
there's no real way to find the matching .dll file form an .so file
without brute forcing it using a bunch of directory listings.
This commit is contained in:
Robbert van der Helm
2022-04-14 23:40:29 +02:00
parent 4ee95b7a14
commit 2f76a17aa3
2 changed files with 5 additions and 11 deletions
-5
View File
@@ -18,11 +18,6 @@ Versioning](https://semver.org/spec/v2.0.0.html).
- Fixed an obscure issue with VST3 plugins crashing in **Ardour** on
Arch/Manjaro because of misreported parameter queue lengths.
### yabridgectl
- Handle plugins with mixed or uppercase `.dll` or `.vst3` extensions. Hopefully
this is not needed though!
## [3.8.1] - 2022-03-08
### Changed
+5 -6
View File
@@ -371,18 +371,17 @@ pub fn index(directory: &Path, blacklist: &HashSet<&Path>) -> SearchIndex {
)
}
if let Some(ext) = entry.path().extension().and_then(|os| os.to_str()) {
if ext.eq_ignore_ascii_case("dll") {
dll_files.push(entry.into_path())
} else if ext.eq_ignore_ascii_case("vst3") {
vst3_files.push(entry.into_path())
} else if ext.eq_ignore_ascii_case("so") {
match entry.path().extension().and_then(|os| os.to_str()) {
Some("dll") => dll_files.push(entry.into_path()),
Some("vst3") => vst3_files.push(entry.into_path()),
Some("so") => {
if entry.path_is_symlink() {
so_files.push(NativeFile::Symlink(entry.into_path()));
} else {
so_files.push(NativeFile::Regular(entry.into_path()));
}
}
_ => (),
}
}