Skip to content

Fix cast stripping to match latest version of decomp#1

Open
xxk-i wants to merge 1 commit into
kurethedead:mm_scene_import_hackfrom
xxk-i:mm_scene_import_hack
Open

Fix cast stripping to match latest version of decomp#1
xxk-i wants to merge 1 commit into
kurethedead:mm_scene_import_hackfrom
xxk-i:mm_scene_import_hack

Conversation

@xxk-i
Copy link
Copy Markdown

@xxk-i xxk-i commented Dec 12, 2023

Very tiny fix. The room parser expects the elements of the .c RoomList to be prefixed with (u32)_... and the files themselves to be prefixed with a _. This is no longer the case in the mm decomp, the casts are now (uintptr_t) and the trailing _ is not in the filenames.

e.g.

RomFile Z2_CLOCKTOWERRoomList0x000164[] = {
    { (uintptr_t)_Z2_CLOCKTOWER_room_00SegmentRomStart, (uintptr_t)_Z2_CLOCKTOWER_room_00SegmentRomEnd },
};

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