aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/nca_patch.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-06 19:20:09 -0400
committerGitHub <noreply@github.com>2018-09-06 19:20:09 -0400
commit4f2ad8be06bd9cadc12e776b83962ac894c28834 (patch)
tree1bd4f34da2c35587d53f0cf8940d1b9cc7fe5a2d /src/core/file_sys/nca_patch.cpp
parent0d14a02fad6638509970456b9715a25c85949d14 (diff)
parent316821049209fcb86b40c2e0743cd7db5455a35f (diff)
Merge pull request #1250 from lioncash/file-sys
file_sys/{nca_patch, patch_manager}: Amend unnecessary/missing includes.
Diffstat (limited to 'src/core/file_sys/nca_patch.cpp')
-rw-r--r--src/core/file_sys/nca_patch.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/file_sys/nca_patch.cpp b/src/core/file_sys/nca_patch.cpp
index e0111bffc4..6fc5bd7d86 100644
--- a/src/core/file_sys/nca_patch.cpp
+++ b/src/core/file_sys/nca_patch.cpp
@@ -2,6 +2,10 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <algorithm>
+#include <cstddef>
+#include <cstring>
+
#include "common/assert.h"
#include "core/crypto/aes_util.h"
#include "core/file_sys/nca_patch.h"
@@ -13,9 +17,9 @@ BKTR::BKTR(VirtualFile base_romfs_, VirtualFile bktr_romfs_, RelocationBlock rel
std::vector<SubsectionBucket> subsection_buckets_, bool is_encrypted_,
Core::Crypto::Key128 key_, u64 base_offset_, u64 ivfc_offset_,
std::array<u8, 8> section_ctr_)
- : base_romfs(std::move(base_romfs_)), bktr_romfs(std::move(bktr_romfs_)),
- relocation(relocation_), relocation_buckets(std::move(relocation_buckets_)),
+ : relocation(relocation_), relocation_buckets(std::move(relocation_buckets_)),
subsection(subsection_), subsection_buckets(std::move(subsection_buckets_)),
+ base_romfs(std::move(base_romfs_)), bktr_romfs(std::move(bktr_romfs_)),
encrypted(is_encrypted_), key(key_), base_offset(base_offset_), ivfc_offset(ivfc_offset_),
section_ctr(section_ctr_) {
for (size_t i = 0; i < relocation.number_buckets - 1; ++i) {