diff options
author | Zach Hilman <DarkLordZach@users.noreply.github.com> | 2019-06-19 16:29:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 16:29:42 +0200 |
commit | 5c665fcc5b3086d8b7d6d84ccdec5356ec58f5fb (patch) | |
tree | 59fbc197a941e8a363cef85a3f75b2293c3c3bff /src/core/file_sys | |
parent | Merge pull request #2562 from ReinUsesLisp/split-cbuf-upload (diff) | |
parent | Addressed issues (diff) | |
download | yuzu-5c665fcc5b3086d8b7d6d84ccdec5356ec58f5fb.tar yuzu-5c665fcc5b3086d8b7d6d84ccdec5356ec58f5fb.tar.gz yuzu-5c665fcc5b3086d8b7d6d84ccdec5356ec58f5fb.tar.bz2 yuzu-5c665fcc5b3086d8b7d6d84ccdec5356ec58f5fb.tar.lz yuzu-5c665fcc5b3086d8b7d6d84ccdec5356ec58f5fb.tar.xz yuzu-5c665fcc5b3086d8b7d6d84ccdec5356ec58f5fb.tar.zst yuzu-5c665fcc5b3086d8b7d6d84ccdec5356ec58f5fb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/control_metadata.cpp | 4 | ||||
-rw-r--r-- | src/core/file_sys/control_metadata.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp index 04da30825..f155a1341 100644 --- a/src/core/file_sys/control_metadata.cpp +++ b/src/core/file_sys/control_metadata.cpp @@ -87,6 +87,10 @@ u64 NACP::GetDefaultJournalSaveSize() const { return raw.user_account_save_data_journal_size; } +bool NACP::GetUserAccountSwitchLock() const { + return raw.user_account_switch_lock != 0; +} + u32 NACP::GetSupportedLanguages() const { return raw.supported_languages; } diff --git a/src/core/file_sys/control_metadata.h b/src/core/file_sys/control_metadata.h index 1be34ed55..2d8c251ac 100644 --- a/src/core/file_sys/control_metadata.h +++ b/src/core/file_sys/control_metadata.h @@ -30,7 +30,8 @@ struct RawNACP { std::array<LanguageEntry, 16> language_entries; std::array<u8, 0x25> isbn; u8 startup_user_account; - INSERT_PADDING_BYTES(2); + u8 user_account_switch_lock; + u8 addon_content_registration_type; u32_le application_attribute; u32_le supported_languages; u32_le parental_control; @@ -111,6 +112,7 @@ public: u64 GetDefaultJournalSaveSize() const; u32 GetSupportedLanguages() const; std::vector<u8> GetRawBytes() const; + bool GetUserAccountSwitchLock() const; private: RawNACP raw{}; |