3
0
Fork 0
forked from suyu/suyu

Merge pull request #2578 from lioncash/cnmt

file_sys/nca_metadata: Update CNMT structures
This commit is contained in:
bunnei 2019-06-11 21:13:05 -04:00 committed by GitHub
commit 7e2bcf04b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
#pragma once #pragma once
#include <array>
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "common/common_funcs.h" #include "common/common_funcs.h"
@ -69,11 +70,15 @@ struct CNMTHeader {
u64_le title_id; u64_le title_id;
u32_le title_version; u32_le title_version;
TitleType type; TitleType type;
INSERT_PADDING_BYTES(1); u8 reserved;
u16_le table_offset; u16_le table_offset;
u16_le number_content_entries; u16_le number_content_entries;
u16_le number_meta_entries; u16_le number_meta_entries;
INSERT_PADDING_BYTES(12); u8 attributes;
std::array<u8, 2> reserved2;
u8 is_committed;
u32_le required_download_system_version;
std::array<u8, 4> reserved3;
}; };
static_assert(sizeof(CNMTHeader) == 0x20, "CNMTHeader has incorrect size."); static_assert(sizeof(CNMTHeader) == 0x20, "CNMTHeader has incorrect size.");