You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
only recalculate a PointerLabelParam parsed_address if necessary
This commit is contained in:
@@ -1466,7 +1466,11 @@ class PointerLabelParam(MultiByteParam):
|
|||||||
bank = self.bank
|
bank = self.bank
|
||||||
#we pass bank= for whether or not to include a bank byte when reading
|
#we pass bank= for whether or not to include a bank byte when reading
|
||||||
#.. it's not related to caddress
|
#.. it's not related to caddress
|
||||||
caddress = calculate_pointer_from_bytes_at(self.address, bank=self.bank)
|
caddress = None
|
||||||
|
if not (hasattr(self, "parsed_address") and self.parsed_address != None):
|
||||||
|
caddress = calculate_pointer_from_bytes_at(self.address, bank=self.bank)
|
||||||
|
else:
|
||||||
|
caddress = self.parsed_address
|
||||||
label = get_label_for(caddress)
|
label = get_label_for(caddress)
|
||||||
pointer_part = label #use the label, if it is found
|
pointer_part = label #use the label, if it is found
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user