Skip to content

[OoT] Fix custom-path OoT/MM DL import not reading object header#714

Open
mike-r129 wants to merge 1 commit into
Fast-64:mainfrom
mike-r129:fix-custom-dl-header
Open

[OoT] Fix custom-path OoT/MM DL import not reading object header#714
mike-r129 wants to merge 1 commit into
Fast-64:mainfrom
mike-r129:fix-custom-dl-header

Conversation

@mike-r129

Copy link
Copy Markdown

The custom-path import reads the given .c file but never reads the matching .h.
OoT/MM objects define the texture width/height in the .h, so the import fails:

AssertionError: match is null for object_toki_objects_Tex_000000_WIDTH

ootGetObjectHeaderPath returned the .c path unchanged for custom imports, so OOT_ImportDL read the .c twice and the header was never loaded. This derives the .h next to the .c instead.

Tested with object_toki_objects (DL object_toki_objects_DL_000880) from an ntsc-1.2 extract via custom path: errors as above before the change, imports correctly after.

The skeleton importer uses the same helper, so custom skeleton import is fixed too.

@mike-r129 mike-r129 changed the title Fix custom-path OoT/MM DL import not reading object header [OoT] Fix custom-path OoT/MM DL import not reading object header Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant