diff options
author | Chloe Marcec <dmarcecguzman@gmail.com> | 2021-03-26 16:03:18 +0100 |
---|---|---|
committer | Chloe Marcec <dmarcecguzman@gmail.com> | 2021-03-26 16:03:18 +0100 |
commit | e9a1f29e936e8da5899c360394f37c7646150e3f (patch) | |
tree | cbcd16b15b3e485c2523b41dee5a9e15706ca6fd /src/core/file_sys | |
parent | Merge pull request #6101 from ogniK5377/alloc-as-ex (diff) | |
download | yuzu-e9a1f29e936e8da5899c360394f37c7646150e3f.tar yuzu-e9a1f29e936e8da5899c360394f37c7646150e3f.tar.gz yuzu-e9a1f29e936e8da5899c360394f37c7646150e3f.tar.bz2 yuzu-e9a1f29e936e8da5899c360394f37c7646150e3f.tar.lz yuzu-e9a1f29e936e8da5899c360394f37c7646150e3f.tar.xz yuzu-e9a1f29e936e8da5899c360394f37c7646150e3f.tar.zst yuzu-e9a1f29e936e8da5899c360394f37c7646150e3f.zip |
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/control_metadata.cpp | 8 | ||||
-rw-r--r-- | src/core/file_sys/control_metadata.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp index b0a130345..f66759815 100644 --- a/src/core/file_sys/control_metadata.cpp +++ b/src/core/file_sys/control_metadata.cpp @@ -100,6 +100,14 @@ u64 NACP::GetDeviceSaveDataSize() const { return raw.device_save_data_size; } +u32 NACP::GetParentalControlFlag() const { + return raw.parental_control; +} + +const std::array<u8, 0x20>& NACP::GetRatingAge() const { + return raw.rating_age; +} + std::vector<u8> NACP::GetRawBytes() const { std::vector<u8> out(sizeof(RawNACP)); std::memcpy(out.data(), &raw, sizeof(RawNACP)); diff --git a/src/core/file_sys/control_metadata.h b/src/core/file_sys/control_metadata.h index 403c4219a..dd9837cf5 100644 --- a/src/core/file_sys/control_metadata.h +++ b/src/core/file_sys/control_metadata.h @@ -114,6 +114,8 @@ public: std::vector<u8> GetRawBytes() const; bool GetUserAccountSwitchLock() const; u64 GetDeviceSaveDataSize() const; + u32 GetParentalControlFlag() const; + const std::array<u8, 0x20>& GetRatingAge() const; private: RawNACP raw{}; |