Package2: Difference between revisions

Liam (talk | contribs)
mNo edit summary
Liam (talk | contribs)
No edit summary
Line 217: Line 217:
| 0x2C
| 0x2C
| 0x4
| 0x4
| Reserved
| Main Thread Affinity Mask
|-
|-
| 0x30
| 0x30
Line 257: Line 257:
| 0x0
| 0x0
| 0x4
| 0x4
| Offset
| Memory Offset
|-
|-
| 0x4
| 0x4
| 0x4
| 0x4
| Decompressed Size
| Memory Size
|-
|-
| 0x8
| 0x8
| 0x4
| 0x4
| Compressed Size
| File Size
|}
|}


Compressed size can be 0 or lower than exepected, this is the case for BSS for example.
File size can be 0 or lower than exepected, this is the case for BSS for example.


===== Compression =====
===== Compression =====
The compression used here is BLZ, with a modified footer since 3ds. The footer is now 0xC bytes instead of 0x8, and has the form u32 compressed_data_len; u32 initial_index; u32 additional_len_when_uncompressed;
The compression used here is BLZ, with a modified footer since 3ds. The footer is now 0xC bytes instead of 0x8, and has the form u32 compressed_data_len; u32 footer_size; u32 additional_len_when_uncompressed;


== Section 2 ==
== Section 2 ==