Skip to content

Commit

Permalink
Also support menu arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
CensoredUsername committed Feb 24, 2020
1 parent f1d7098 commit d1a58cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions decompiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,12 @@ def print_menu(self, ast):
if self.label_inside_menu is not None:
self.write(" %s" % self.label_inside_menu.name)
self.label_inside_menu = None

if hasattr(ast, "arguments") and ast.arguments is not None:
self.write(reconstruct_arginfo(ast.arguments))

self.write(":")

with self.increase_indent():
if self.say_inside_menu is not None:
self.print_say(self.say_inside_menu, inmenu=True)
Expand Down

0 comments on commit d1a58cc

Please sign in to comment.