diff options
| author | 2019-05-23 00:55:56 -0700 | |
|---|---|---|
| committer | 2019-05-23 00:55:56 -0700 | |
| commit | 7dbf4c1ae5fbe6287575e7ac1b0f93dbb16843c2 (patch) | |
| tree | 020e199743748138d062cd07c40f13f028c06bef /src/core/file_sys | |
| parent | shader/decode/memory: Remove left in debug pragma (diff) | |
| download | yuzu-7dbf4c1ae5fbe6287575e7ac1b0f93dbb16843c2.tar.gz yuzu-7dbf4c1ae5fbe6287575e7ac1b0f93dbb16843c2.tar.xz yuzu-7dbf4c1ae5fbe6287575e7ac1b0f93dbb16843c2.zip | |
Implement IApplicationFunctions::GetDesiredLanguage
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/control_metadata.cpp | 4 | ||||
| -rw-r--r-- | src/core/file_sys/control_metadata.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp index 60ea9ad12..04da30825 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 { | |||
| 87 | return raw.user_account_save_data_journal_size; | 87 | return raw.user_account_save_data_journal_size; |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | u32 NACP::GetSupportedLanguages() const { | ||
| 91 | return raw.supported_languages; | ||
| 92 | } | ||
| 93 | |||
| 90 | std::vector<u8> NACP::GetRawBytes() const { | 94 | std::vector<u8> NACP::GetRawBytes() const { |
| 91 | std::vector<u8> out(sizeof(RawNACP)); | 95 | std::vector<u8> out(sizeof(RawNACP)); |
| 92 | std::memcpy(out.data(), &raw, sizeof(RawNACP)); | 96 | 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 280710ddf..1be34ed55 100644 --- a/src/core/file_sys/control_metadata.h +++ b/src/core/file_sys/control_metadata.h | |||
| @@ -109,6 +109,7 @@ public: | |||
| 109 | std::string GetVersionString() const; | 109 | std::string GetVersionString() const; |
| 110 | u64 GetDefaultNormalSaveSize() const; | 110 | u64 GetDefaultNormalSaveSize() const; |
| 111 | u64 GetDefaultJournalSaveSize() const; | 111 | u64 GetDefaultJournalSaveSize() const; |
| 112 | u32 GetSupportedLanguages() const; | ||
| 112 | std::vector<u8> GetRawBytes() const; | 113 | std::vector<u8> GetRawBytes() const; |
| 113 | 114 | ||
| 114 | private: | 115 | private: |