Title Database: Difference between revisions
TimmSkiller (talk | contribs) Correct information about pre-headers |
TimmSkiller (talk | contribs) Complete full format of Title Info Entry |
||
| Line 140: | Line 140: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Start | ! Start !! Length !! Description | ||
! Length | |||
! Description | |||
|- | |- | ||
| 0x0 | | 0x0 || 0x8 || u64, Title Size | ||
| | |||
| Title Size | |||
|- | |- | ||
| 0x8 | | 0x8 || 0x4 || u32, Title Type from TMD (usually 0x40) | ||
| | |||
| Title Type(usually 0x40) | |||
|- | |- | ||
| 0xC | | 0xC || 0x2 || u16, Title Version | ||
| | |||
| Title Version | |||
|- | |- | ||
| | | 0xE || 0x2 || u16, Content index for Download Play Child content | ||
| | |||
| | |||
|- | |- | ||
| | | 0x10 || 0x2 || u16, Content index for Instruction Manual content | ||
| | |||
| | |||
|- | |- | ||
| | | 0x12 || 0x2 || u16, Content index for Old3DS update partition (even though this is unused because digital titles don't have update partitions) | ||
| | |||
| | |||
|- | |- | ||
| | | 0x14 || 0x4 || TMD file ID (the ID part in <code>{ID}.tmd</code> inside the title folder) | ||
| | |||
| | |||
|- | |- | ||
| | | 0x18 || 0x4 || CMD file ID (the ID part in <code>{ID}.cmd</code> inside the title folder) | ||
| | |||
| | |||
|- | |- | ||
| | | 0x1C || 0x4 || save file ID (the ID part in <code>{ID}.sav</code> inside the title/data folder) | ||
| | |||
| | |||
|- | |- | ||
| | | 0x20 || 0x8 || u64, extdata ID (zero if title does not use extdata) | ||
| | |||
| | |||
|- | |- | ||
| | | 0x28 || 0x1 || bool, has public.sav (DSiWare only) | ||
| | |||
| | |||
|- | |- | ||
| | | 0x29 || 0x1 || bool, has private.sav (DSiWare only) | ||
| | |||
| | |||
|- | |- | ||
| | | 0x2A || 0x1 || bool, has banner.sav (DSiWare only) | ||
| | |||
| | |||
|- | |- | ||
| | | 0x2B || 0x1 || bool, requires moving public/private/banner.new to public/private/banner.sav (DSiWare only) (see [[AMPXI:WriteTWLSavedata]]) | ||
| | |- | ||
| Reserved | | 0x2C || 0x1 || u8, CMD format version (see [[Titles#Data_Structure|Title Data Structure]]) | ||
|- | |||
| 0x2D || 0x1 || bool, is user DSiWare title (as in, does not have system title bit set, see [[Title_list#TWL_(DSi)_Titles|TWL (DSi) Titles]] for more information) | |||
|- | |||
| 0x2E || 0x2 || u16, New3DS update partition content index (even though this is unused because digital titles don't have update partitions) | |||
|- | |||
| 0x30 || 0x10 || Product code (first 12 bytes of raw .nds for DSiWare, which is the game title) | |||
|- | |||
| 0x40 || 0x8 || u64, ordering number. Used in some code paths to find the "latest" added entry, but this value is never written and always 0. | |||
|- | |||
| 0x48 || 0x1 || bool, is temporary (true for DLP child titles added into tmp_i/tmp_t.db) | |||
|- | |||
| 0x49 || 0x1 || u8, [[Application_Manager_Services#ImportTitleContextState|ImportTitleContextState]] | |||
|- | |||
| 0x4A || 0x1 || bool, overwrite (set when reinstalling an existing title) | |||
|- | |||
| 0x4B || 0x1 || Reserved | |||
|- | |||
| 0x4C || 0x4 || Content ID for content index 0, 0xFFFFFFFF if not applicable | |||
|- | |||
| 0x50 || 0x4 || u32, random value generated during title installation (See [[CTXT]]) | |||
|- | |||
| 0x54 || 0x2C || Reserved | |||
|} | |} | ||