Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions port/src/preprocess/filepads.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ static u32 convertPadsFile(u8 *dst, u8 *src)
host_header->ptr_waygroups = (dstpos);
dstpos = convertWayGroups(dst, dstpos, src, PD_BE32(n64_header->ptr_waygroups));

// On 32bit ARM the covers MUST be 32bit aligned for float access, otherwise SIGBUS
// This fixes crash when starting level 3
#if PLATFORM_ARM == 7
dstpos = (dstpos + 3) & ~3u;
#endif

// Cover
host_header->ptr_cover = (dstpos);
dstpos = convertCover(dst, dstpos, src, PD_BE32(n64_header->ptr_cover), num_covers);
Expand Down