mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-12 21:46:39 +00:00
CNTM: type name consistence.
This commit is contained in:
parent
98b7a309b3
commit
d440d88bbe
2 changed files with 23 additions and 23 deletions
|
@ -121,8 +121,8 @@ bool cnmtInitializeContext(ContentMetaContext *out, NcaContext *nca_ctx)
|
|||
out->nca_ctx = nca_ctx;
|
||||
|
||||
/* Verify packaged header. */
|
||||
out->packaged_header = (ContentMetaPackagedHeader*)out->raw_data;
|
||||
cur_offset += sizeof(ContentMetaPackagedHeader);
|
||||
out->packaged_header = (ContentMetaPackagedContentMetaHeader*)out->raw_data;
|
||||
cur_offset += sizeof(ContentMetaPackagedContentMetaHeader);
|
||||
|
||||
if (out->packaged_header->title_id != title_id)
|
||||
{
|
||||
|
|
|
@ -67,7 +67,7 @@ typedef struct {
|
|||
ContentMetaInstallState install_state;
|
||||
ContentMetaVersion required_download_system_version;
|
||||
u8 reserved_2[0x4];
|
||||
} ContentMetaPackagedHeader;
|
||||
} ContentMetaPackagedContentMetaHeader;
|
||||
|
||||
/// Extended header for the SystemUpdate title.
|
||||
/// Equivalent to NcmSystemUpdateMetaExtendedHeader.
|
||||
|
@ -232,7 +232,7 @@ typedef struct {
|
|||
u8 *raw_data; ///< Pointer to a dynamically allocated buffer that holds the raw CNMT.
|
||||
u64 raw_data_size; ///< Raw CNMT size. Kept here for convenience - this is part of 'pfs_entry'.
|
||||
u8 raw_data_hash[SHA256_HASH_SIZE]; ///< SHA-256 checksum calculated over the whole raw CNMT. Used to determine if NcaHierarchicalSha256Patch generation is truly needed.
|
||||
ContentMetaPackagedHeader *packaged_header; ///< Pointer to the ContentMetaPackagedHeader within 'raw_data'.
|
||||
ContentMetaPackagedContentMetaHeader *packaged_header; ///< Pointer to the ContentMetaPackagedContentMetaHeader within 'raw_data'.
|
||||
u8 *extended_header; ///< Pointer to the extended header within 'raw_data', if available. May be casted to other types. Its size is stored in 'packaged_header'.
|
||||
NcmPackagedContentInfo *packaged_content_info; ///< Pointer to the NcmPackagedContentInfo entries within 'raw_data'. The content count is stored in 'packaged_header'.
|
||||
NcmContentMetaInfo *content_meta_info; ///< Pointer to the NcmContentMetaInfo entries within 'raw_data', if available. The content meta count is stored in 'packaged_header'.
|
||||
|
|
Loading…
Reference in a new issue