diff options
| author | Mason Reed <mason@vector35.com> | 2026-03-13 12:24:18 -0700 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-03-24 18:46:48 -0700 |
| commit | 3c88b11e5df33116580ac008e36092775df66135 (patch) | |
| tree | cd64fbe149f05683ddabcccd0db7b87356f1f8cf /plugins/warp/src/plugin/file.rs | |
| parent | f325aa7b6026a1daef84931baeb1f50d7da10c10 (diff) | |
[WARP] Improved UX and API
- Exposes WARP type objects directly
- Adds processor API (for generating warp files directly)
- Adds file and chunk API
- Misc cleanup
- Simplified the amount of commands
- Replaced the "Create" commands with a purpose built processor dialog
- Added a native QT viewer for WARP files
- Simplified committing to a remote with a purpose built commit dialog
Diffstat (limited to 'plugins/warp/src/plugin/file.rs')
| -rw-r--r-- | plugins/warp/src/plugin/file.rs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/plugins/warp/src/plugin/file.rs b/plugins/warp/src/plugin/file.rs deleted file mode 100644 index cd5fb626..00000000 --- a/plugins/warp/src/plugin/file.rs +++ /dev/null @@ -1,41 +0,0 @@ -use crate::report::ReportGenerator; -use binaryninja::binary_view::{BinaryView, BinaryViewExt}; -use binaryninja::command::Command; - -pub struct ShowFileReport; - -impl Command for ShowFileReport { - fn action(&self, view: &BinaryView) { - let view = view.to_owned(); - std::thread::spawn(move || { - let Some(path) = - binaryninja::interaction::get_open_filename_input("Select file to show", "*.warp") - else { - return; - }; - - let Ok(bytes) = std::fs::read(&path) else { - tracing::error!("Failed to read file: {:?}", path); - return; - }; - - let Some(file) = warp::WarpFile::from_bytes(&bytes) else { - tracing::error!("Failed to parse file: {:?}", path); - return; - }; - - let report_generator = ReportGenerator::new(); - if let Some(html_string) = report_generator.html_report(&file) { - view.show_html_report( - &format!("WARP File: {}", path.to_string_lossy()), - html_string.as_str(), - "", - ); - } - }); - } - - fn valid(&self, _view: &BinaryView) -> bool { - true - } -} |
