mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
[yabridgectl] Handle non-lowercase file extensions
Hopefully this shouldn't be needed, but I didn't realize we only parsed lower case file names. Wouldn't be surprised if some installer ends up creating an uppercased `.DLL` file.
This commit is contained in:
@@ -371,17 +371,18 @@ pub fn index(directory: &Path, blacklist: &HashSet<&Path>) -> SearchIndex {
|
||||
)
|
||||
}
|
||||
|
||||
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 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") {
|
||||
if entry.path_is_symlink() {
|
||||
so_files.push(NativeFile::Symlink(entry.into_path()));
|
||||
} else {
|
||||
so_files.push(NativeFile::Regular(entry.into_path()));
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user