From ed02842315303f0c96bc040073abb3f94efe0768 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Fri, 27 Apr 2012 17:35:06 -0500 Subject: TextPointerLabelParam.get_dependencies() now returns the text pointer original-commit-id: 6321bf121f0afc5a16a510e08c688bcb6bf5ab15 --- crystal.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crystal.py b/crystal.py index 5d9a8aa..4458ee9 100644 --- a/crystal.py +++ b/crystal.py @@ -1522,7 +1522,10 @@ class TextPointerLabelParam(PointerLabelParam): address = calculate_pointer_from_bytes_at(self.address, bank=self.bank) if address != None and address != 0: self.text = parse_text_engine_script_at(address, map_group=self.map_group, map_id=self.map_id, force=self.force, debug=self.debug) - + + def get_dependencies(self, recompute=False, global_dependencies=set()): + global_dependencies.add(self.text) + return [self.text] class MovementPointerLabelParam(PointerLabelParam): pass -- cgit v1.2.3