Browse Source
file_sys/nca_metadata: Update CNMT structures
Names a few more entries in relevant structures. Information based off
SwitchBrew and my own RE.
pull/15/merge
Lioncash
7 years ago
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
1 changed files with
7 additions and
2 deletions
-
src/core/file_sys/nca_metadata.h
|
|
|
@ -4,6 +4,7 @@ |
|
|
|
|
|
|
|
#pragma once |
|
|
|
|
|
|
|
#include <array> |
|
|
|
#include <memory> |
|
|
|
#include <vector> |
|
|
|
#include "common/common_funcs.h" |
|
|
|
@ -69,11 +70,15 @@ struct CNMTHeader { |
|
|
|
u64_le title_id; |
|
|
|
u32_le title_version; |
|
|
|
TitleType type; |
|
|
|
INSERT_PADDING_BYTES(1); |
|
|
|
u8 reserved; |
|
|
|
u16_le table_offset; |
|
|
|
u16_le number_content_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."); |
|
|
|
|
|
|
|
|