makerom v0.5

This commit is contained in:
3DSGuy
2014-04-01 14:08:00 +08:00
parent 510988b07a
commit 26772b49c8
45 changed files with 5630 additions and 4132 deletions
+38 -38
View File
@@ -5,61 +5,61 @@ typedef enum
{
TYPE_CTR = 0x40,
TYPE_DATA = 0x8
} title_type;
} tmd_title_type;
typedef enum
{
Encrypted = 0x0001,
Optional = 0x4000,
Shared = 0x8000
} content_types;
content_Encrypted = 0x0001,
content_Optional = 0x4000,
content_Shared = 0x8000
} tmd_content_types;
typedef struct
{
u8 content_id[4];
u8 content_index[2];
u8 content_type[2];
u8 content_size[8];
u8 sha_256_hash[0x20];
} TMD_CONTENT_CHUNK_STRUCT;
u8 contentID[4];
u8 contentIndex[2];
u8 contentFlags[2];
u8 contentSize[8];
u8 contentHash[0x20]; // SHA 256
} tmd_content_chunk;
typedef struct
{
u8 content_index_offset[2];
u8 content_command_count[2];
u8 sha_256_hash[0x20];
} TMD_CONTENT_INFO_RECORD;
u8 contentIndexOffset[2];
u8 contentCommandCount[2];
u8 contentChunkHash[0x20]; // SHA 256
} tmd_content_info_record;
typedef struct
{
u8 sig_type[4];
u8 sigType[4];
u8 data[0x100];
u8 padding[0x3C];
} TMD_SignatureStruct;
} tmd_signature;
typedef struct
{
u8 Issuer[0x40];
u8 TMDFormatVersion;
u8 ca_crl_version;
u8 signer_crl_version;
u8 padding_1;
u8 SystemVersion[8];
u8 TitleID[8];
u8 TitleType[4];
u8 GroupID[2];
u8 SaveDataSize[4];
u8 PrivSaveDataSize[4]; // Zero for CXI Content0
u8 Reserved_0[4];
u8 TWL_Flag; // Zero for CXI Content0
u8 Reserved_1[0x31];
u8 AccessRights[4];
u8 TitleVersion[2];
u8 ContentCount[2];
u8 BootContent[2];
u8 Padding[2];
u8 sha_256_hash[0x20];
} TMD_Struct;
u8 issuer[0x40];
u8 formatVersion;
u8 caCrlVersion;
u8 signerCrlVersion;
u8 padding0;
u8 systemVersion[8];
u8 titleID[8];
u8 titleType[4];
u8 groupID[2];
u8 savedataSize[4];
u8 privSavedataSize[4]; // Zero for CXI Content0
u8 padding1[4];
u8 twlFlag; // Zero for CXI Content0
u8 padding2[0x31];
u8 accessRights[4];
u8 titleVersion[2];
u8 contentCount[2];
u8 bootContent[2];
u8 padding3[2];
u8 infoRecordHash[0x20]; // SHA-256
} tmd_hdr;
#endif