Changes

158 bytes added ,  19:29, 18 September 2012
Swapped the seconday/primary partition table terms, since that's backwards for the actual order of the data stored in the SAVE partition.
Line 156: Line 156:     
* This is located @ 0x100 in the image, following the MAC header.
 
* This is located @ 0x100 in the image, following the MAC header.
* If the uint32 @ 0x68 in the DISA(the low 8-bits) is non-zero, then the first table is is used, otherwise the second DIFI table is used.  
+
* If the uint32 @ 0x68 in the DISA(the low 8-bits) is non-zero, then the secondary table is is used, otherwise the primary table is used.  
 
* If the table has more then 1 DIFI then the uint32 @ 0x168 is the offset from the DATA partition to the file base (masked with 0xFFFFFFFE).
 
* If the table has more then 1 DIFI then the uint32 @ 0x168 is the offset from the DATA partition to the file base (masked with 0xFFFFFFFE).
   Line 179: Line 179:  
| 0x10
 
| 0x10
 
| 8
 
| 8
| Offset to primary partition table
+
| Offset to secondary partition table
 
|-
 
|-
 
| 0x18
 
| 0x18
 
| 8
 
| 8
| Offset to secondary partition table
+
| Offset to primary partition table
 
|-
 
|-
 
| 0x20
 
| 0x20
Line 238: Line 238:  
* The SAVE partition offset is usually 0x1000. The SAVE/DATA partitions begins with the DPFS partitions, the relative offset for the IVFC partition data is specified by the DPFS header.
 
* The SAVE partition offset is usually 0x1000. The SAVE/DATA partitions begins with the DPFS partitions, the relative offset for the IVFC partition data is specified by the DPFS header.
   −
The DIFIs table @ 0x200 (into the image) is written twice, (Meaning, if there's 4 DIFI blobs then the table is 2 DIFIs long).
+
The DIFIs table at offset 0x200 in the image has 2 DIFIs when the DATA partition isn't used, 4 DIFIs otherwise. Each partition table contains the SAVE DIFI entry and optionally the DATA entry. The secondary partition table is located at offset 0x200 in the image, and the primary table follows the secondary table.
   −
The second table is for backup.
+
The non-active table is for backup.
    
==== DIFF ====
 
==== DIFF ====
    
* This is the [[extdata]] equivalent of DISA, for extdata which use FS. DIFF is only used for extdata.
 
* This is the [[extdata]] equivalent of DISA, for extdata which use FS. DIFF is only used for extdata.
* When the active-table field low 8-bits is non-zero, the primary partition is used. Otherwise, the secondary partition is used.
+
* When the active-table field low 8-bits is non-zero, the secondary partition is used. Otherwise, the primary partition is used.
    
{| class="wikitable"
 
{| class="wikitable"
Line 263: Line 263:  
| 0x08
 
| 0x08
 
| 8
 
| 8
| Primary partition table offset
+
| Secondary partition table offset
 
|-
 
|-
 
| 0x10
 
| 0x10
 
| 8
 
| 8
| Secondary partition table offset
+
| Primary partition table offset
 
|-
 
|-
 
| 0x18
 
| 0x18
Line 296: Line 296:  
For most games there's only 1 partition (The SAVE partition) and some (like Asphalt 3D, Steel Diver & Lego Star Wars III) has 2 partitions.
 
For most games there's only 1 partition (The SAVE partition) and some (like Asphalt 3D, Steel Diver & Lego Star Wars III) has 2 partitions.
   −
* 2 Partitions means that the files inside the SAVE partition is on the other partition (we would call it DATA partition).
+
* 2 Partitions means that the files inside the SAVE partition is on the DATA partition.
 
* The DISA/DIFF headers support a maximum of 2 partitions.
 
* The DISA/DIFF headers support a maximum of 2 partitions.