Skip to content

Commit

Permalink
Use PluginCommand.register instead of register_for_address
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Jun 11, 2023
1 parent c13abf6 commit fb8a6d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_xfg_pointer(bv):
return xfg_pointer


def add_xfg_xref(bv, function):
def add_xfg_xref(bv):
if bv.view_type != 'PE':
log_warn('xfg only works with PE files')
return
Expand Down Expand Up @@ -78,4 +78,4 @@ def add_xfg_xref(bv, function):
bv.commit_undo_actions()


PluginCommand.register_for_address("Add XFG Xref", "Add XFG Xref", add_xfg_xref)
PluginCommand.register("Add XFG Xref", "Add XFG Xref", add_xfg_xref)

0 comments on commit fb8a6d0

Please sign in to comment.