1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-08 15:30:14 +00:00

Better automatic names for Limbs and JointKeys, and implement more get_as_xml (#2590)

This commit is contained in:
Dragorn421 2025-06-06 03:55:30 +02:00 committed by GitHub
parent 747006fdd4
commit b84d1afc67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 2 deletions

View file

@ -1110,6 +1110,10 @@ class BinaryBlobResource(Resource):
# Nothing specific to do
return RESOURCE_PARSE_SUCCESS
def get_as_xml(self):
return f"""\
<Blob Name="{self.symbol_name}" Size="0x{self.range_end - self.range_start:X}" Offset="0x{self.range_start:X}"/>"""
def get_c_reference(self, resource_offset):
return f"&{self.symbol_name}[{resource_offset}]"