control_metadata: Use value member instead of unique_ptr to store struct

Serves no actual purpose in this instance besides making NACP's copy assignment deleted, which is not intended behavior.
This commit is contained in:
Zach Hilman
2018-12-06 20:25:32 -05:00
parent 4a6ba58073
commit 5c4259ec1a
2 changed files with 13 additions and 10 deletions

View File

@ -72,6 +72,7 @@ extern const std::array<const char*, 15> LANGUAGE_NAMES;
// These store application name, dev name, title id, and other miscellaneous data.
class NACP {
public:
explicit NACP();
explicit NACP(VirtualFile file);
~NACP();
@ -84,7 +85,7 @@ public:
std::vector<u8> GetRawBytes() const;
private:
std::unique_ptr<RawNACP> raw;
RawNACP raw;
};
} // namespace FileSys