CCI: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
=== Overview === | === Overview === | ||
CCI files start with a NCSD header, followed by 3 | CCI files start with a NCSD header, followed by 3 NCCH blocks. The first block usually starts at 0x4000. While it is unknown what each NCCH block is for, the first one is most likely the main program code since it is much bigger than the others. | ||
The NCCH blocks are in the same format as [[CXI]] files. | |||
=== NCSD header === | === NCSD header === | ||
Line 29: | Line 31: | ||
| 0x120 | | 0x120 | ||
| 4 | | 4 | ||
| Offset to the first | | Offset to the first NCCH in media units | ||
|- | |- | ||
| 0x124 | | 0x124 | ||
| 4 | | 4 | ||
| Size of the first | | Size of the first NCCH | ||
|- | |- | ||
| 0x130 | | 0x130 | ||
| 4 | | 4 | ||
| Offset to the second | | Offset to the second NCCH | ||
|- | |- | ||
| 0x134 | | 0x134 | ||
| 4 | | 4 | ||
| Size of the second | | Size of the second NCCH | ||
|- | |- | ||
| 0x158 | | 0x158 | ||
| 4 | | 4 | ||
| Offset to the third | | Offset to the third NCCH | ||
|- | |- | ||
| 0x15C | | 0x15C | ||
| 4 | | 4 | ||
| Size of the third | | Size of the third NCCH | ||
|- | |- | ||
| 0x18C | | 0x18C | ||
Line 57: | Line 59: | ||
| 0x190 | | 0x190 | ||
| 8 | | 8 | ||
| Partition ID of the first | | Partition ID of the first NCCH | ||
|- | |- | ||
| 0x1A0 | | 0x1A0 | ||
| 8 | | 8 | ||
| Partition ID of the second | | Partition ID of the second NCCH | ||
|- | |- | ||
| 0x1C8 | | 0x1C8 | ||
| 8 | | 8 | ||
| Partition ID of the third | | Partition ID of the third NCCH | ||
|- | |- | ||
| 0x200 | | 0x200 | ||
Line 80: | Line 82: | ||
|} | |} | ||
Parts of the first | Parts of the first NCCH block's header are found around 0x1000 for whatever reason. | ||
CCI images may not include all three | CCI images may not include all three NCCH blocks. For example, Ghost Recon: Shadow Wars lacks the second NCCH. Entries at 0x130, 0x134 and 0x1A0 in its NCSD header are zero. |