shithub: pokecrystal

Download patch

ref: 4b1540623a9043bc7edc1c94a7663565e13d7bd9
parent: a548ffdd3576f04ab7b67c5c766b6dce68262d43
author: Bryan Bishop <[email protected]>
date: Fri May 11 12:26:36 EDT 2012

set dependencies and get_dependencies on ApplyMovementData for asm dumping

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -2004,6 +2004,7 @@
         self.map_id    = map_id
         self.debug     = debug
         self.force     = force
+        self.dependencies = []
         
         if not label:
             label = self.base_label + hex(address)
@@ -2103,6 +2104,10 @@
     def to_asm(self):
         asm_output = "\n".join([command.to_asm() for command in self.commands])
         return asm_output
+
+    # TODO: get_dependencies doesn't work if ApplyMovementData uses labels in the future
+    def get_dependencies(self, recompute=False, global_dependencies=set()):
+        return []
 
 class TextCommand(Command):
     # an individual text command will not end it