summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/nca_metadata.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-11 21:39:09 +0200
committerZach Hilman <zachhilman@gmail.com>2018-08-12 04:50:48 +0200
commit893447b6b0f5068f3cc2111b5f21c3cff68002e2 (patch)
treef2451fcb2478243621b6952ca5b006f22f957022 /src/core/file_sys/nca_metadata.h
parentnca_metadata: Remove unnecessary reference to base file (diff)
downloadyuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar.gz
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar.bz2
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar.lz
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar.xz
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.tar.zst
yuzu-893447b6b0f5068f3cc2111b5f21c3cff68002e2.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/nca_metadata.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/file_sys/nca_metadata.h b/src/core/file_sys/nca_metadata.h
index c1ca9b061..88e66d4da 100644
--- a/src/core/file_sys/nca_metadata.h
+++ b/src/core/file_sys/nca_metadata.h
@@ -29,6 +29,9 @@ enum class TitleType : u8 {
DeltaTitle = 0x83,
};
+bool operator>=(TitleType lhs, TitleType rhs);
+bool operator<=(TitleType lhs, TitleType rhs);
+
enum class ContentRecordType : u8 {
Meta = 0,
Program = 1,
@@ -96,8 +99,8 @@ public:
std::vector<u8> Serialize() const;
private:
- std::unique_ptr<CNMTHeader> header;
- std::unique_ptr<OptionalHeader> opt_header;
+ CNMTHeader header;
+ OptionalHeader opt_header;
std::vector<ContentRecord> content_records;
std::vector<MetaRecord> meta_records;