Title Database: Difference between revisions

Wwylele (talk | contribs)
Migrate to Inner FAT
TimmSkiller (talk | contribs)
Correct information about pre-headers
 
(4 intermediate revisions by 2 users not shown)
Line 69: Line 69:
|-
|-
| 0x08
| 0x08
| 0x78
| 0x4
| Version (always 0)
|-
| 0xC
| 0x74
| Reserved
| Reserved
|}
|}


For ticket.db different pre header is used:
For ticket.db, a different pre-header is used:


{| class="wikitable"
{| class="wikitable"
Line 87: Line 91:
| 0x04
| 0x04
| 0x04
| 0x04
| Unknown (always 0x00000001 ?)
| Version (always 1)
|-
|-
| 0x08
| 0x08
| 0x04
| 0x08
| Unknown
| Reserved
|-
| 0x0C
| 0x04
| Unknown (0x30 smaller than previous one)
|}
|}


Line 125: Line 125:
| SD Card title.db
| SD Card title.db
| TEMPTDB
| TEMPTDB
|-
| (unused, likely supposed to be SD card import.db)
| SDMCIDB
|}
|}


Line 198: Line 201:
|}
|}


For ticket.db title info contains a small header and actual ticket data:
For ticket.db title info, there is a header indicates ticket count (as a Title ID can have more than one ticket installed). Then each entry contains the size, followed by the actual ticket data.
{| class="wikitable"
{| class="wikitable"
|+ Header
|-
|-
! Start
! Start
Line 207: Line 211:
| 0x0
| 0x0
| 4
| 4
| Unknown (always 0x00000001?)
| Amount of tickets X
|-
|-
| 0x4
| 0x4
| X * (size of tickets + 4)
| Ticket entries
|}
{| class="wikitable"
|+ Ticket entry
|-
! Start
! Length
! Description
|-
| 0x0
| 4
| 4
| Ticket data size X (=0x530)
| Ticket data size X (often 0x350 but some DLC tickets may be larger)
|-
|-
| 0x8
| 0x4
| X
| X
| [[Ticket|Ticket]] data
| [[Ticket|Ticket]] data