From b973b2d0e648b0aa291d753a29fd45e4f7d466de Mon Sep 17 00:00:00 2001 From: unknowntrojan <14975032+unknowntrojan@users.noreply.github.com> Date: Thu, 12 Dec 2024 00:52:12 +0100 Subject: why, why, why? --- src/lib.rs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index fecc2dc..aec6e15 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -989,9 +989,19 @@ impl Command for SigFinderCommand { #[no_mangle] pub extern "C" fn CorePluginInit() -> bool { - binaryninja::logger::Logger::new("coolsigmaker") - .with_level(log::LevelFilter::Info) - .init(); + + // Due to a breaking change in binaryninja-api, you will need to edit this line depending on which version you are building for. + + // For dev branch: + // binaryninja::logger::Logger::new("coolsigmaker") + // .with_level(log::LevelFilter::Info) + // .init(); + + // For stable branch: + // binaryninja::logger::init(log::LevelFilter::Info).unwrap(); + + // And uncomment this. Sorry for the inconvenience. + compile_error!("sadly, due to a breaking change in the api crate, you will need to make a change to the code above this error."); // TODO: (maybe) if signature not found, maybe go back a few instructions and attempt to create a signature with an offset. // TODO: introduce a setting for "dumb" searches, where we also search non-executable segments for uniqueness, incase the user doesn't want to check the segments before scanning them. -- cgit v1.3.1