diff options
| author | Mason Reed <mason@vector35.com> | 2024-10-30 14:32:41 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-10-30 15:40:40 -0400 |
| commit | acd2dc49cea61e59b9dd7e1a5415cc36cdab1844 (patch) | |
| tree | 7c756ba5178855f2b97a8675423e5a257c3e3d03 /plugins | |
| parent | a4cf45dcd5242c7c68edc3ecf38e857cb24d3cbc (diff) | |
WARP: Fix loading incorrect core signature directory
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/warp/src/matcher.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/warp/src/matcher.rs b/plugins/warp/src/matcher.rs index 81755af9..bd4e0df6 100644 --- a/plugins/warp/src/matcher.rs +++ b/plugins/warp/src/matcher.rs @@ -62,7 +62,11 @@ impl Matcher { ) .unwrap(); // Get core signatures for the given platform - let core_dir = binaryninja::install_directory().unwrap(); + 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"); + #[cfg(not(target_os = "macos"))] let root_core_sig_dir = core_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); |
