2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

nca_metadata: Remove unnecessary reference to base file

This commit is contained in:
Zach Hilman 2018-08-10 20:47:51 -04:00
parent 62e859c6c7
commit 22bdddd6f0
2 changed files with 2 additions and 3 deletions

View file

@ -10,7 +10,7 @@
namespace FileSys {
CNMT::CNMT(VirtualFile file_) : file(std::move(file_)), header(std::make_unique<CNMTHeader>()) {
CNMT::CNMT(VirtualFile file) : header(std::make_unique<CNMTHeader>()) {
if (file->ReadObject(header.get()) != sizeof(CNMTHeader))
return;
@ -41,7 +41,7 @@ CNMT::CNMT(VirtualFile file_) : file(std::move(file_)), header(std::make_unique<
CNMT::CNMT(CNMTHeader header, OptionalHeader opt_header, std::vector<ContentRecord> content_records,
std::vector<MetaRecord> meta_records)
: file(nullptr), header(std::make_unique<CNMTHeader>(std::move(header))),
: header(std::make_unique<CNMTHeader>(std::move(header))),
opt_header(std::make_unique<OptionalHeader>(std::move(opt_header))),
content_records(std::move(content_records)), meta_records(std::move(meta_records)) {}

View file

@ -96,7 +96,6 @@ public:
std::vector<u8> Serialize() const;
private:
VirtualFile file;
std::unique_ptr<CNMTHeader> header;
std::unique_ptr<OptionalHeader> opt_header;
std::vector<ContentRecord> content_records;