Skip to content

Commit

Permalink
Add untested camera statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
CensoredUsername committed Feb 12, 2024
1 parent 32205c8 commit c781b3c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion decompiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,21 @@ def print_with(self, ast):
self.write("with %s" % ast.expr)
self.paired_with = False

@dispatch(renpy.ast.camera)

This comment has been minimized.

Copy link
@madeddy

madeddy Feb 19, 2024

Contributor

Doesn't work.
@dispatch(renpy.ast.Camera) needs to be capitalized.

This comment has been minimized.

Copy link
@CensoredUsername

CensoredUsername Feb 19, 2024

Author Owner

d'oh, fixed

def print_camera(self, ast):
self.indent()
self.write("camera")

if ast.name != "master":
self.write(" %s" % ast.name)

if ast.at_list:
self.write(" at %s" % ", ".join(ast.at_list))

if ast.atl is not None:
self.write(":")
self.print_atl(ast.atl)

# Flow control

@dispatch(renpy.ast.Label)
Expand Down Expand Up @@ -782,7 +797,7 @@ def print_define(self, ast):
self.write("define%s %s.%s%s %s %s" % (priority, ast.store[6:], ast.varname, index, operator, ast.code.source))

@dispatch(renpy.ast.Default)
def print_define(self, ast):
def print_default(self, ast):
self.require_init()
self.indent()

Expand Down

0 comments on commit c781b3c

Please sign in to comment.