mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-08 06:19:09 +01:00
nca_metadata: Remove unnecessary reference to base file
This commit is contained in:
parent
62e859c6c7
commit
22bdddd6f0
2 changed files with 2 additions and 3 deletions
|
@ -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)) {}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue