Skip to content

Commit

Permalink
Merge pull request JusticeRage#2 from patois/main
Browse files Browse the repository at this point in the history
Add check for decompiler availability
  • Loading branch information
JusticeRage authored Dec 4, 2022
2 parents b606bd0 + d04951d commit 4c5bd1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gepetto.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class GepettoPlugin(idaapi.plugin_t):
menu = None

def init(self):
# Check for whether the decompiler is available
if not ida_hexrays.init_hexrays_plugin():
return idaapi.PLUGIN_SKIP

action_desc = idaapi.action_desc_t(
self.action_name, # The action name. This acts like an ID and must be unique
'Explain function', # The action text.
Expand Down

0 comments on commit 4c5bd1f

Please sign in to comment.