[yabridgectl] Index .vst3 files

It doesn't actually identify VST3 modules yet though.
This commit is contained in:
Robbert van der Helm
2020-12-23 18:39:22 +01:00
parent 3dc1b1585b
commit 3d27426b9d
3 changed files with 92 additions and 70 deletions
+6 -2
View File
@@ -255,10 +255,14 @@ impl Config {
/// Search for VST2 and VST3 plugins in all of the registered plugins directories. This will
/// return an error if `winedump` could not be called.
pub fn index_directories(&self) -> Result<BTreeMap<&Path, SearchResults>> {
pub fn search_directories(&self) -> Result<BTreeMap<&Path, SearchResults>> {
self.plugin_dirs
.par_iter()
.map(|path| files::index(path).map(|search_results| (path.as_path(), search_results)))
.map(|path| {
files::index(path)
.search()
.map(|search_results| (path.as_path(), search_results))
})
.collect()
}
}