From 9229ebde590febc9635d824ae9284ae170dee9da Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 15 Nov 2024 16:08:56 -0500 Subject: Fix signature path lookup for core signatures in WARP --- plugins/warp/src/matcher.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/warp/src/matcher.rs b/plugins/warp/src/matcher.rs index 6ad3fdc7..e5b2afbf 100644 --- a/plugins/warp/src/matcher.rs +++ b/plugins/warp/src/matcher.rs @@ -63,11 +63,10 @@ impl Matcher { let platform_name = platform.name().to_string(); // Get core signatures for the given platform let install_dir = binaryninja::install_directory().unwrap(); - let core_dir = install_dir.parent().unwrap(); #[cfg(target_os = "macos")] - let root_core_sig_dir = core_dir.join("Resources").join("signatures"); + let root_core_sig_dir = install_dir.parent().unwrap().join("Resources").join("signatures"); #[cfg(not(target_os = "macos"))] - let root_core_sig_dir = core_dir.join("signatures"); + let root_core_sig_dir = install_dir.join("signatures"); let plat_core_sig_dir = root_core_sig_dir.join(&platform_name); let mut data = get_data_from_dir(&plat_core_sig_dir); -- cgit v1.3.1