MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / main

Function main

rust/examples/dump_settings.rs:3–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1use binaryninja::settings::Settings;
2
3fn main() {
4 println!("Starting session...");
5 // This loads all the core architecture, platform, etc plugins
6 let _headless_session =
7 binaryninja::headless::Session::new().expect("Failed to initialize session");
8
9 let settings = Settings::new();
10 for key in &settings.keys() {
11 let value = settings.get_string(key);
12 let default_value = settings.get_property_string(key, "default");
13 let title = settings.get_property_string(key, "title");
14 let description = settings.get_property_string(key, "description");
15 println!("{}:", key);
16 println!(" value: {}", value);
17 println!(" default_value: {}", default_value);
18 println!(" title: {}", title);
19 println!(" description: {}", description);
20 }
21}

Callers

nothing calls this directly

Calls 3

get_property_stringMethod · 0.80
keysMethod · 0.45
get_stringMethod · 0.45

Tested by

no test coverage detected