From 24b600f9d57007473df3a667dca8584070b06317 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 13 Aug 2023 14:15:00 +0200 Subject: [PATCH] [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. --- tools/yabridgectl/src/config.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/yabridgectl/src/config.rs b/tools/yabridgectl/src/config.rs index 53200bd5..051ae584 100644 --- a/tools/yabridgectl/src/config.rs +++ b/tools/yabridgectl/src/config.rs @@ -308,11 +308,13 @@ impl Config { let yabridge_host_exe = which(YABRIDGE_HOST_EXE_NAME).ok(); let yabridge_host_exe_so = yabridge_host_exe .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_so = yabridge_host_32_exe .as_ref() - .map(|path| path.with_extension("exe.so")); + .map(|path| path.with_extension("exe.so")) + .filter(|path| path.exists()); Ok(YabridgeFiles { vst2_chainloader,