CIA: Difference between revisions

Elisherer (talk | contribs)
Sorry for the repost, just figured some stuff up...
Elisherer (talk | contribs)
correct myself :)
Line 4: Line 4:
=== Format ===
=== Format ===
The CIA format based on [http://wiibrew.org/wiki/Wad WAD format], so the structure is very similar to the WAD structure.
The CIA format based on [http://wiibrew.org/wiki/Wad WAD format], so the structure is very similar to the WAD structure.
The file is represented in little-endian.
The file is represented in little-endian.
The data is aligned in 64 byte blocks (if a content ends at the middle of the block, the next content will begin from a new block).
== CIA Header ==
== CIA Header ==


Line 54: Line 58:
* APP file data
* APP file data
The data of the files is decrypted.
The data of the files is decrypted.
If you sum up all the fields in the header you get 60 bytes less then the actual file size. (you need to add the 32 bytes of the header).
Question: Where are those 60 bytes at?