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

introduce RawPointers xml attribute to ignore specific pointers and keep them raw

This commit is contained in:
Dragorn421 2025-02-09 12:19:44 +01:00
commit bb7215b25a
No known key found for this signature in database
GPG key ID: 381AEBAF3D429335
6 changed files with 49 additions and 5 deletions

View file

@ -234,7 +234,7 @@ def register_resource_handlers():
file: File,
resource_desc: n64resources.DListResourceDesc,
):
return dlist_resources.DListResource(
res = dlist_resources.DListResource(
file,
resource_desc.offset,
resource_desc.symbol_name,
@ -243,6 +243,8 @@ def register_resource_handlers():
n64resources.GfxMicroCode.F3DEX2: dlist_resources.Ucode.f3dex2,
}[resource_desc.ucode],
)
res.ignored_raw_pointers |= resource_desc.raw_pointers
return res
def texture_resource_handler(
file: File, resource_desc: n64resources.TextureResourceDesc