MREA (Metroid Prime 2): Difference between revisions
m
→Format: whoops
>Aruki (some data has to be repeated between articles with this setup but it's probably worth it for the clean separation of differences between versions of the format.) |
>Aruki m (→Format: whoops) |
||
Line 8: | Line 8: | ||
Like CMDL, MREA files are split up into a number of 32-byte aligned sections. Every section both starts and ends on a 32-byte boundary. These are used to separate different parts of the file; different types of sections typically indicate different sets of data. The header declares the section count and the size of each one; using these is the only way to navigate the file. | Like CMDL, MREA files are split up into a number of 32-byte aligned sections. Every section both starts and ends on a 32-byte boundary. These are used to separate different parts of the file; different types of sections typically indicate different sets of data. The header declares the section count and the size of each one; using these is the only way to navigate the file. | ||
=== Header === | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 99: | Line 101: | ||
Following the section sizes comes an array defining the file's compressed cluster. Each definition is 0x10 bytes and is formatted like this: | Following the section sizes comes an array defining the file's compressed cluster. Each definition is 0x10 bytes and is formatted like this: | ||
{ | {| class="wikitable" | ||
! Offset | ! Offset | ||
! Size | ! Size |