From 4b1540623a9043bc7edc1c94a7663565e13d7bd9 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Fri, 11 May 2012 16:26:36 -0500 Subject: [PATCH] set dependencies and get_dependencies on ApplyMovementData for asm dumping --- extras/crystal.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extras/crystal.py b/extras/crystal.py index e6f664f9b..bb7576e61 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -2004,6 +2004,7 @@ class ApplyMovementData: self.map_id = map_id self.debug = debug self.force = force + self.dependencies = [] if not label: label = self.base_label + hex(address) @@ -2104,6 +2105,10 @@ class ApplyMovementData: 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 end = False