diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-04-27 18:50:13 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-04-27 18:50:13 -0500 |
commit | 7cdec464274a25a7e4f5267ced585a993dcd02fd (patch) | |
tree | dd11b4b82248d8ebf04b278ce0d0e130967cee8a /crystal.py | |
parent | 86cb81a9d542c4bc3b7dc7f8e221637d3128ebd1 (diff) |
still having trouble with UnknownText_0x580c7 not in main.asm
original-commit-id: 94e486be8983dfea18cb97b767447e0c2a551877
Diffstat (limited to 'crystal.py')
-rw-r--r-- | crystal.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1523,6 +1523,8 @@ 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) + if not self.text: + self.text = script_parse_table[address] def get_dependencies(self, recompute=False, global_dependencies=set()): if self.text: @@ -1799,7 +1801,7 @@ pksv_crystal_more = { 0x49: ["loadmovesprites"], 0x4A: ["loadbytec1ce", ["byte", SingleByteParam]], #not pksv 0x4B: ["3writetext", ["text_pointer", PointerLabelBeforeBank]], - 0x4C: ["2writetext", ["text_pointer", TextPointerLabelParam]], + 0x4C: ["2writetext", ["text_pointer", RawTextPointerLabelParam]], 0x4D: ["repeattext", ["byte", SingleByteParam], ["byte", SingleByteParam]], #not pksv 0x4E: ["yesorno"], 0x4F: ["loadmenudata", ["data", MenuDataPointerParam]], |