Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
patois authored Jun 4, 2020
1 parent 7299193 commit 24d92c8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions abyss.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

# ----------------------------------------------------------------------------
class abyss_filter_t:
"""every filter should inherit from this class and
override respective handlers/methods"""

def __init__(self):
self.set_activated(False)
return
Expand All @@ -29,8 +32,9 @@ def process_curpos(self, vu):
def is_activated(self):
return self.activated

# Call set_activated(True) in your inherited script to enable it automatically when loading
def set_activated(self, active):
"""Call set_activated(True) within the constructor
of a filter script to enable it automatically when loading"""
self.activated = active

# ----------------------------------------------------------------------------
Expand Down Expand Up @@ -115,7 +119,8 @@ class abyss_plugin_t(ida_idaapi.plugin_t):
comment = "Postprocess Hexrays Output"
help = comment
wanted_name = PLUGIN_NAME
wanted_hotkey = "Ctrl-Alt-R" # allows reloading filter scripts while developing them
# allows reloading filter scripts while developing them
wanted_hotkey = "Ctrl-Alt-R"

def init(self):
if hr.init_hexrays_plugin():
Expand Down

0 comments on commit 24d92c8

Please sign in to comment.