summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/control_metadata.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-16 02:11:42 +0200
committerLioncash <mathew1800@gmail.com>2018-10-16 02:11:44 +0200
commit76fc8b59b261c62d73ae44eba2cd8b3a4cbe14cb (patch)
tree48e70ddf985ea3ffe3507f77e0d36587b4515bb4 /src/core/file_sys/control_metadata.cpp
parentMerge pull request #1494 from DarkLordZach/aoc-signature-fixes (diff)
downloadyuzu-76fc8b59b261c62d73ae44eba2cd8b3a4cbe14cb.tar
yuzu-76fc8b59b261c62d73ae44eba2cd8b3a4cbe14cb.tar.gz
yuzu-76fc8b59b261c62d73ae44eba2cd8b3a4cbe14cb.tar.bz2
yuzu-76fc8b59b261c62d73ae44eba2cd8b3a4cbe14cb.tar.lz
yuzu-76fc8b59b261c62d73ae44eba2cd8b3a4cbe14cb.tar.xz
yuzu-76fc8b59b261c62d73ae44eba2cd8b3a4cbe14cb.tar.zst
yuzu-76fc8b59b261c62d73ae44eba2cd8b3a4cbe14cb.zip
Diffstat (limited to 'src/core/file_sys/control_metadata.cpp')
-rw-r--r--src/core/file_sys/control_metadata.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp
index 6bb588080..a012c2be9 100644
--- a/src/core/file_sys/control_metadata.cpp
+++ b/src/core/file_sys/control_metadata.cpp
@@ -17,11 +17,13 @@ const std::array<const char*, 15> LANGUAGE_NAMES = {
};
std::string LanguageEntry::GetApplicationName() const {
- return Common::StringFromFixedZeroTerminatedBuffer(application_name.data(), 0x200);
+ return Common::StringFromFixedZeroTerminatedBuffer(application_name.data(),
+ application_name.size());
}
std::string LanguageEntry::GetDeveloperName() const {
- return Common::StringFromFixedZeroTerminatedBuffer(developer_name.data(), 0x100);
+ return Common::StringFromFixedZeroTerminatedBuffer(developer_name.data(),
+ developer_name.size());
}
NACP::NACP(VirtualFile file) : raw(std::make_unique<RawNACP>()) {
@@ -61,6 +63,7 @@ u64 NACP::GetDLCBaseTitleId() const {
}
std::string NACP::GetVersionString() const {
- return Common::StringFromFixedZeroTerminatedBuffer(raw->version_string.data(), 0x10);
+ return Common::StringFromFixedZeroTerminatedBuffer(raw->version_string.data(),
+ raw->version_string.size());
}
} // namespace FileSys