aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/control_metadata.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-25 23:30:56 -0400
committerLioncash <mathew1800@gmail.com>2019-04-03 21:18:12 -0400
commit74c41c409559b62e7a6858cde09db86e7d56e0dd (patch)
tree803c4591b37fe0f342db31dbaf066e399db3178b /src/core/file_sys/control_metadata.cpp
parent119fd24785d93ad0879554f857bab15f79d511a1 (diff)
file_sys/control_metadata: Amend naming of members
Quite a bit of these were out of sync with Switchbrew (and in some cases entirely wrong). While we're at it, also expand the section of named members. A segment within the control metadata is used to specify maximum values for the user, device, and cache storage max sizes and journal sizes. These appear to be generally used by the am service (e.g. in CreateCacheStorage, etc).
Diffstat (limited to 'src/core/file_sys/control_metadata.cpp')
-rw-r--r--src/core/file_sys/control_metadata.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp
index 83c184750b..60ea9ad120 100644
--- a/src/core/file_sys/control_metadata.cpp
+++ b/src/core/file_sys/control_metadata.cpp
@@ -67,7 +67,7 @@ std::string NACP::GetDeveloperName(Language language) const {
}
u64 NACP::GetTitleId() const {
- return raw.title_id;
+ return raw.save_data_owner_id;
}
u64 NACP::GetDLCBaseTitleId() const {
@@ -80,11 +80,11 @@ std::string NACP::GetVersionString() const {
}
u64 NACP::GetDefaultNormalSaveSize() const {
- return raw.normal_save_data_size;
+ return raw.user_account_save_data_size;
}
u64 NACP::GetDefaultJournalSaveSize() const {
- return raw.journal_sava_data_size;
+ return raw.user_account_save_data_journal_size;
}
std::vector<u8> NACP::GetRawBytes() const {