Changes

132 bytes added ,  19:05, 20 March 2016
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:
   −
'''[[Flash Filesystem|NAND]]:'''
+
{| class="wikitable" border="1" style="margin: auto;"
* nand/title - Title Data
+
|-
* nand/data/<ID0>/sysdata - Save Data
+
|
 +
! 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
 +
|-
 +
|}
   −
'''[[SD Filesystem|SD Card]]:'''
+
ID0 is the first 0x10-bytes from a SHA256 [[nand/private/movable.sed|hash]] and ID1 is generated from the SD card CID.
* sdmc/Nintendo 3DS/<ID0>/<ID1>/title - Title Data/Save Data
     −
ID0 is the first 0x10-bytes from a SHA256 [[nand/private/movable.sed|hash]].
+
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]], however the NAND title data is stored as cleartext.
      
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.
   −
And the title data is contained in this directory structure:
+
The title data is contained in this directory structure:
    
'''NAND Directory Structure''':
 
'''NAND Directory Structure''':
549

edits