diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-16 18:08:15 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-16 18:08:17 +0200 |
commit | 4783ad54de0d7f1add443914e304fe08409568ff (patch) | |
tree | 7f8c262d13e77edad6e32d8d1f2cfe3670e1ea91 /src | |
parent | Merge pull request #1443 from DarkLordZach/lower-loader-logs-1 (diff) | |
download | yuzu-4783ad54de0d7f1add443914e304fe08409568ff.tar yuzu-4783ad54de0d7f1add443914e304fe08409568ff.tar.gz yuzu-4783ad54de0d7f1add443914e304fe08409568ff.tar.bz2 yuzu-4783ad54de0d7f1add443914e304fe08409568ff.tar.lz yuzu-4783ad54de0d7f1add443914e304fe08409568ff.tar.xz yuzu-4783ad54de0d7f1add443914e304fe08409568ff.tar.zst yuzu-4783ad54de0d7f1add443914e304fe08409568ff.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_sys/content_archive.cpp | 4 | ||||
-rw-r--r-- | src/core/file_sys/content_archive.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp index 6dcec7816..0872a378b 100644 --- a/src/core/file_sys/content_archive.cpp +++ b/src/core/file_sys/content_archive.cpp @@ -167,7 +167,7 @@ boost::optional<Core::Crypto::Key128> NCA::GetTitlekey() { return titlekey; } -VirtualFile NCA::Decrypt(NCASectionHeader s_header, VirtualFile in, u64 starting_offset) { +VirtualFile NCA::Decrypt(const NCASectionHeader& s_header, VirtualFile in, u64 starting_offset) { if (!encrypted) return in; @@ -295,7 +295,7 @@ NCA::NCA(VirtualFile file_, VirtualFile bktr_base_romfs_, u64 bktr_base_ivfc_off ivfc_offset = 0; for (std::ptrdiff_t i = 0; i < number_sections; ++i) { - auto section = sections[i]; + const auto& section = sections[i]; if (section.raw.header.filesystem_type == NCASectionFilesystemType::ROMFS) { const std::size_t base_offset = diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.h index f9f66cae9..d02ea4f4b 100644 --- a/src/core/file_sys/content_archive.h +++ b/src/core/file_sys/content_archive.h @@ -109,7 +109,7 @@ private: u8 GetCryptoRevision() const; boost::optional<Core::Crypto::Key128> GetKeyAreaKey(NCASectionCryptoType type) const; boost::optional<Core::Crypto::Key128> GetTitlekey(); - VirtualFile Decrypt(NCASectionHeader header, VirtualFile in, u64 starting_offset); + VirtualFile Decrypt(const NCASectionHeader& header, VirtualFile in, u64 starting_offset); std::vector<VirtualDir> dirs; std::vector<VirtualFile> files; |