From 89f7f6da5f84e452f6630f63716adffd413b6d87 Mon Sep 17 00:00:00 2001 From: Jordan Date: Tue, 11 Jan 2022 17:16:46 -0500 Subject: [PATCH 1/3] update minimum version --- plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.json b/plugin.json index d2690be..9862fc3 100644 --- a/plugin.json +++ b/plugin.json @@ -47,5 +47,5 @@ }, "version": "1.3.5", "author": "Vector 35 Inc", - "minimumbinaryninjaversion": 3000 + "minimumbinaryninjaversion": 3164 } From c26207f4337ca96ddef112547e779dd43fb6f9a4 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Tue, 11 Jan 2022 18:08:19 -0500 Subject: [PATCH 2/3] cleanup readme --- README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/README.md b/README.md index 8ce0de0..9538289 100644 --- a/README.md +++ b/README.md @@ -8,16 +8,6 @@ This is a longer description meant for a sample plugin that demonstrates the met Note that originally we recommended specifying the contents of this entire file inside of the [plugin.json](./plugin.json) but the latest repository generator will use the readme contents directly which means you should simply leave an empty longdescription field. -## Minimum Version - -This plugin requires the following minimum version of Binary Ninja: - - * 3000 - ## License This plugin is released under an [MIT license](./license). - -## Metadata Version - -2 From ccfeef1e4675e53ce20df5e832f2865d88e4c38c Mon Sep 17 00:00:00 2001 From: Xusheng Date: Sun, 11 Jun 2023 14:01:17 +0800 Subject: [PATCH 3/3] Use PluginCommand.register instead of register_for_address --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 67435f4..5e8c0e3 100644 --- a/__init__.py +++ b/__init__.py @@ -1,7 +1,7 @@ from binaryninja import * -def do_nothing(bv,function): +def do_nothing(bv): show_message_box("Do Nothing", "Congratulations! You have successfully done nothing.\n\n" + "Pat yourself on the back.", MessageBoxButtonSet.OKButtonSet, MessageBoxIcon.ErrorIcon) -PluginCommand.register_for_address("Useless Plugin", "Basically does nothing", do_nothing) +PluginCommand.register("Useless Plugin", "Basically does nothing", do_nothing)