diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/nca_patch.cpp | 8 | ||||
| -rw-r--r-- | src/core/file_sys/nca_patch.h | 7 | ||||
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 4 | ||||
| -rw-r--r-- | src/core/file_sys/patch_manager.h | 1 |
4 files changed, 16 insertions, 4 deletions
diff --git a/src/core/file_sys/nca_patch.cpp b/src/core/file_sys/nca_patch.cpp index e0111bffc..6fc5bd7d8 100644 --- a/src/core/file_sys/nca_patch.cpp +++ b/src/core/file_sys/nca_patch.cpp | |||
| @@ -2,6 +2,10 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <algorithm> | ||
| 6 | #include <cstddef> | ||
| 7 | #include <cstring> | ||
| 8 | |||
| 5 | #include "common/assert.h" | 9 | #include "common/assert.h" |
| 6 | #include "core/crypto/aes_util.h" | 10 | #include "core/crypto/aes_util.h" |
| 7 | #include "core/file_sys/nca_patch.h" | 11 | #include "core/file_sys/nca_patch.h" |
| @@ -13,9 +17,9 @@ BKTR::BKTR(VirtualFile base_romfs_, VirtualFile bktr_romfs_, RelocationBlock rel | |||
| 13 | std::vector<SubsectionBucket> subsection_buckets_, bool is_encrypted_, | 17 | std::vector<SubsectionBucket> subsection_buckets_, bool is_encrypted_, |
| 14 | Core::Crypto::Key128 key_, u64 base_offset_, u64 ivfc_offset_, | 18 | Core::Crypto::Key128 key_, u64 base_offset_, u64 ivfc_offset_, |
| 15 | std::array<u8, 8> section_ctr_) | 19 | std::array<u8, 8> section_ctr_) |
| 16 | : base_romfs(std::move(base_romfs_)), bktr_romfs(std::move(bktr_romfs_)), | 20 | : relocation(relocation_), relocation_buckets(std::move(relocation_buckets_)), |
| 17 | relocation(relocation_), relocation_buckets(std::move(relocation_buckets_)), | ||
| 18 | subsection(subsection_), subsection_buckets(std::move(subsection_buckets_)), | 21 | subsection(subsection_), subsection_buckets(std::move(subsection_buckets_)), |
| 22 | base_romfs(std::move(base_romfs_)), bktr_romfs(std::move(bktr_romfs_)), | ||
| 19 | encrypted(is_encrypted_), key(key_), base_offset(base_offset_), ivfc_offset(ivfc_offset_), | 23 | encrypted(is_encrypted_), key(key_), base_offset(base_offset_), ivfc_offset(ivfc_offset_), |
| 20 | section_ctr(section_ctr_) { | 24 | section_ctr(section_ctr_) { |
| 21 | for (size_t i = 0; i < relocation.number_buckets - 1; ++i) { | 25 | for (size_t i = 0; i < relocation.number_buckets - 1; ++i) { |
diff --git a/src/core/file_sys/nca_patch.h b/src/core/file_sys/nca_patch.h index 0d9ad95f5..381f3504f 100644 --- a/src/core/file_sys/nca_patch.h +++ b/src/core/file_sys/nca_patch.h | |||
| @@ -5,10 +5,13 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <array> | 7 | #include <array> |
| 8 | #include <memory> | ||
| 8 | #include <vector> | 9 | #include <vector> |
| 9 | #include <common/common_funcs.h> | 10 | |
| 11 | #include "common/common_funcs.h" | ||
| 12 | #include "common/common_types.h" | ||
| 13 | #include "common/swap.h" | ||
| 10 | #include "core/crypto/key_manager.h" | 14 | #include "core/crypto/key_manager.h" |
| 11 | #include "core/file_sys/romfs.h" | ||
| 12 | 15 | ||
| 13 | namespace FileSys { | 16 | namespace FileSys { |
| 14 | 17 | ||
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 40675de35..6cecab336 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp | |||
| @@ -2,6 +2,10 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <array> | ||
| 6 | #include <cstddef> | ||
| 7 | |||
| 8 | #include "common/logging/log.h" | ||
| 5 | #include "core/file_sys/content_archive.h" | 9 | #include "core/file_sys/content_archive.h" |
| 6 | #include "core/file_sys/control_metadata.h" | 10 | #include "core/file_sys/control_metadata.h" |
| 7 | #include "core/file_sys/patch_manager.h" | 11 | #include "core/file_sys/patch_manager.h" |
diff --git a/src/core/file_sys/patch_manager.h b/src/core/file_sys/patch_manager.h index 28c7ae136..b521977b2 100644 --- a/src/core/file_sys/patch_manager.h +++ b/src/core/file_sys/patch_manager.h | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <map> | 7 | #include <map> |
| 8 | #include <memory> | ||
| 8 | #include <string> | 9 | #include <string> |
| 9 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 10 | #include "core/file_sys/nca_metadata.h" | 11 | #include "core/file_sys/nca_metadata.h" |