From ae144062dbdb047b924c2071a37a8154864cb07b Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 5 Dec 2023 13:05:44 -0500 Subject: Resolves #3714: Adds core initialization/shutdown wrapper object (to the Rust API) that you can initialize at the top of your script and it'll auto-cleanup at the end of your script. Also some misc doc fixes. --- rust/examples/mlil_visitor/src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'rust/examples/mlil_visitor/src') diff --git a/rust/examples/mlil_visitor/src/main.rs b/rust/examples/mlil_visitor/src/main.rs index 3f75708c..f83a7eac 100644 --- a/rust/examples/mlil_visitor/src/main.rs +++ b/rust/examples/mlil_visitor/src/main.rs @@ -235,7 +235,7 @@ fn main() { // This loads all the core architecture, platform, etc plugins // Standalone executables probably need to call this, but plugins do not println!("Loading plugins..."); - binaryninja::headless::init(); + let _headless_session = binaryninja::headless::Session::new(); // Your code here... println!("Loading binary..."); @@ -261,7 +261,4 @@ fn main() { } println!(); } - - // Important! Standalone executables need to call shutdown or they will hang forever - binaryninja::headless::shutdown(); } -- cgit v1.3.1