Titles: Difference between revisions
Line 135: | Line 135: | ||
Titles are installed to either the NAND (System and Application) or to the SD Card (Application only), and their respective directory locations are: | Titles are installed to either the NAND (System and Application) or to the SD Card (Application only), and their respective directory locations are: | ||
{| class="wikitable" border="1" style="margin: auto;" | |||
|- | |||
| | |||
! scope="col"| [[Flash Filesystem|NAND]] | |||
! scope="col"| [[SD Filesystem|SD]] | |||
|- | |||
! scope="row"| Title Data | |||
| nand/title | |||
| rowspan="2" | sdmc/Nintendo 3DS/<ID0>/<ID1>/title | |||
|- | |||
! scope="row"| Save Data | |||
| nand/data/<ID0>/sysdata | |||
|- | |||
|} | |||
ID0 is the first 0x10-bytes from a SHA256 [[nand/private/movable.sed|hash]] and ID1 is generated from the SD card CID. | |||
Title data stored on the SD Card is encrypted with the console-unique [[nand/private/movable.sed|keyslots]], whereas NAND title data is stored as cleartext. | |||
Title data stored on the SD Card is encrypted with the console-unique [[nand/private/movable.sed|keyslots]], | |||
The base CTR for files stored under /title is likely based on the /title path, similar to extdata. This base CTR is unique per titleID and filename. The base CTR never changes after creation of each file. | The base CTR for files stored under /title is likely based on the /title path, similar to extdata. This base CTR is unique per titleID and filename. The base CTR never changes after creation of each file. | ||
Line 150: | Line 158: | ||
When a newer version of a title is installed, the new .app content, .tmd, and .cmd(and .ctx for NAND titles) are written to the /title directory, however the old files here are not yet deleted. Once installation of the title is [[AMNet:InstallTitlesFinish|finalized]], the info from [[Title_Database|import.db]] is moved to [[Title_Database|title.db]] so that the system uses the newer files instead, then the old /title files are deleted. | When a newer version of a title is installed, the new .app content, .tmd, and .cmd(and .ctx for NAND titles) are written to the /title directory, however the old files here are not yet deleted. Once installation of the title is [[AMNet:InstallTitlesFinish|finalized]], the info from [[Title_Database|import.db]] is moved to [[Title_Database|title.db]] so that the system uses the newer files instead, then the old /title files are deleted. | ||
The title data is contained in this directory structure: | |||
'''NAND Directory Structure''': | '''NAND Directory Structure''': |