[yabridgectl] Verify existence of .exe.so files

This should not be a problem, but a packaging or copying screwup could
still cause these files to not be present.
This commit is contained in:
Robbert van der Helm
2023-08-13 14:15:00 +02:00
parent 1ff44ebd63
commit 24b600f9d5
+4 -2
View File
@@ -308,11 +308,13 @@ impl Config {
let yabridge_host_exe = which(YABRIDGE_HOST_EXE_NAME).ok(); let yabridge_host_exe = which(YABRIDGE_HOST_EXE_NAME).ok();
let yabridge_host_exe_so = yabridge_host_exe let yabridge_host_exe_so = yabridge_host_exe
.as_ref() .as_ref()
.map(|path| path.with_extension("exe.so")); .map(|path| path.with_extension("exe.so"))
.filter(|path| path.exists());
let yabridge_host_32_exe = which(YABRIDGE_HOST_32_EXE_NAME).ok(); let yabridge_host_32_exe = which(YABRIDGE_HOST_32_EXE_NAME).ok();
let yabridge_host_32_exe_so = yabridge_host_32_exe let yabridge_host_32_exe_so = yabridge_host_32_exe
.as_ref() .as_ref()
.map(|path| path.with_extension("exe.so")); .map(|path| path.with_extension("exe.so"))
.filter(|path| path.exists());
Ok(YabridgeFiles { Ok(YabridgeFiles {
vst2_chainloader, vst2_chainloader,