From d34bb4b45a4b862d9af992e30220e9c344834ce3 Mon Sep 17 00:00:00 2001 From: Elias Bachaalany Date: Thu, 6 Apr 2023 19:52:18 -0700 Subject: [PATCH] + added default run/term for modern plugins No longer need to implement dummy/empty run/term callbacks in plugin_t. --- pywraps/py_idaapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pywraps/py_idaapi.py b/pywraps/py_idaapi.py index ecf9f1a..83fa934 100644 --- a/pywraps/py_idaapi.py +++ b/pywraps/py_idaapi.py @@ -231,7 +231,8 @@ def _bounded_getitem_iterator(self): # ----------------------------------------------------------------------- class plugin_t(pyidc_opaque_object_t): """Base class for all scripted plugins.""" - pass + def run(self, arg): pass + def term(self): pass # ----------------------------------------------------------------------- class plugmod_t(pyidc_opaque_object_t):