diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-10-28 19:55:32 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-29 18:54:38 +0100 |
commit | b04e39107fd947d59b76214747a81b8cb6fe92a8 (patch) | |
tree | 4347b9ef377c6bc2a65c22f1d449c6dc938edcfc /src | |
parent | Merge pull request #1610 from slashiee/dxt1-alpha (diff) | |
download | yuzu-b04e39107fd947d59b76214747a81b8cb6fe92a8.tar yuzu-b04e39107fd947d59b76214747a81b8cb6fe92a8.tar.gz yuzu-b04e39107fd947d59b76214747a81b8cb6fe92a8.tar.bz2 yuzu-b04e39107fd947d59b76214747a81b8cb6fe92a8.tar.lz yuzu-b04e39107fd947d59b76214747a81b8cb6fe92a8.tar.xz yuzu-b04e39107fd947d59b76214747a81b8cb6fe92a8.tar.zst yuzu-b04e39107fd947d59b76214747a81b8cb6fe92a8.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_sys/control_metadata.cpp | 6 | ||||
-rw-r--r-- | src/core/file_sys/control_metadata.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp index a012c2be9..c8fa912bf 100644 --- a/src/core/file_sys/control_metadata.cpp +++ b/src/core/file_sys/control_metadata.cpp @@ -66,4 +66,10 @@ std::string NACP::GetVersionString() const { return Common::StringFromFixedZeroTerminatedBuffer(raw->version_string.data(), raw->version_string.size()); } + +std::vector<u8> NACP::GetRawBytes() const { + std::vector<u8> out(sizeof(RawNACP)); + std::memcpy(out.data(), raw.get(), sizeof(RawNACP)); + return out; +} } // namespace FileSys diff --git a/src/core/file_sys/control_metadata.h b/src/core/file_sys/control_metadata.h index 141f7e056..bfaad46b4 100644 --- a/src/core/file_sys/control_metadata.h +++ b/src/core/file_sys/control_metadata.h @@ -81,6 +81,7 @@ public: u64 GetTitleId() const; u64 GetDLCBaseTitleId() const; std::string GetVersionString() const; + std::vector<u8> GetRawBytes() const; private: std::unique_ptr<RawNACP> raw; |