Changes

747 bytes added ,  23:39, 3 May 2019
no edit summary
Line 73: Line 73:     
== Filesystem Header ==
 
== Filesystem Header ==
Offsets listed in the table below are all related to the beginning of the header. This is especially important for title database, as the offsets doesn't count the pre header there.
+
Offsets listed in the table below are all relative to the beginning of the header, while all "starting block index" are relative to the beginning of data region. This is especially important for title database, as the offsets doesn't count the pre header.
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
! Offset
 
! Offset
Line 220: Line 220:  
| Padding
 
| Padding
 
|}
 
|}
 +
 +
* For savegames, the file/directory bucket count & maximum count are specified by the parameters of [[FS:FormatSaveData]] or [[FS:CreateSystemSaveData]].
 +
* For extdata, the maximum file/directory count are specified by the parameters of [[FS:CreateExtSaveData]]. The bucket count is likely calculated by the system.
 +
* Directory & file entry tables are allocated in the data region as if they are two normal files (except for savegame <code>duplicate data = false</code> layout). However, only continuous allocation has been observed, so directly reading block_count * block_size bytes from data_region + starting_block_index * block_size should be safe.
    
== Directory Entry Table ==
 
== Directory Entry Table ==
Line 389: Line 393:  
| 0x20
 
| 0x20
 
| 8
 
| 8
| Unique identifier
+
| Unique identifier. See [[Extdata]]
 
|-
 
|-
 
| 0x28
 
| 0x28
242

edits