Line 45:
Line 45:
=== Content usage ===
=== Content usage ===
+
Content 0 is typically used to store metadata, including a 0x40 byte header including a build tag and author, as well as a banner if the title is a channel or [[DLC]].
β
For installed channels:
+
For official channels, the content in the "boot index" field of the [[TMD]] (typically the last content) is a copy of the [[NAND Boot Program]]. Unofficial channels such as the [[Homebrew Channel]] instead directly put the main binary here. The NAND Boot Program loads the main [[DOL]] file from content index 1, sometimes LZ11-decompressing it.
β
* The content in the "boot index" field directs to the [[NAND Boot Program]].
β
* Content index 0 stores the 0x40 byte build tag (optional) and [[Opening.bnr|banner]] data, including the animation and the localised titles.
β
* Content index 1 stores the DOL file to be launched by the boot program, sometimes LZ11 compressed.
β
For DLC:
+
For [[IOS]], the boot index (usually the last content) is used for the main binary containing the kernel, [[ES]], and [[FS (IOS)|FS]], and contents between the metadata content and the boot content are used for individual modules that are not part of the main binary.
β
* Content index 0 is used to store a 0x40 byte build tag (optional) and the [[Savegame_Files#Banner|banner]] to display in the Data Management menu.
=== Types of contents ===
=== Types of contents ===