diff options
| author | 2020-04-17 16:33:08 -0400 | |
|---|---|---|
| committer | 2020-04-17 16:33:08 -0400 | |
| commit | b8f5c71f2d7f819821acf036175cce65ab1ae12c (patch) | |
| tree | 151d7ed4e47536dc0e149a7117387b6a502d7da6 /src/core/file_sys | |
| parent | Merge pull request #3682 from lioncash/uam (diff) | |
| parent | core: hle: Address various feedback & code cleanup. (diff) | |
| download | yuzu-b8f5c71f2d7f819821acf036175cce65ab1ae12c.tar.gz yuzu-b8f5c71f2d7f819821acf036175cce65ab1ae12c.tar.xz yuzu-b8f5c71f2d7f819821acf036175cce65ab1ae12c.zip | |
Merge pull request #3666 from bunnei/new-vmm
Implement a new virtual memory manager
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 8 | ||||
| -rw-r--r-- | src/core/file_sys/patch_manager.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 81ec06cd4..b93aa6935 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp | |||
| @@ -249,7 +249,7 @@ bool PatchManager::HasNSOPatch(const std::array<u8, 32>& build_id_) const { | |||
| 249 | } | 249 | } |
| 250 | 250 | ||
| 251 | namespace { | 251 | namespace { |
| 252 | std::optional<std::vector<Memory::CheatEntry>> ReadCheatFileFromFolder( | 252 | std::optional<std::vector<Core::Memory::CheatEntry>> ReadCheatFileFromFolder( |
| 253 | const Core::System& system, u64 title_id, const std::array<u8, 0x20>& build_id_, | 253 | const Core::System& system, u64 title_id, const std::array<u8, 0x20>& build_id_, |
| 254 | const VirtualDir& base_path, bool upper) { | 254 | const VirtualDir& base_path, bool upper) { |
| 255 | const auto build_id_raw = Common::HexToString(build_id_, upper); | 255 | const auto build_id_raw = Common::HexToString(build_id_, upper); |
| @@ -269,14 +269,14 @@ std::optional<std::vector<Memory::CheatEntry>> ReadCheatFileFromFolder( | |||
| 269 | return std::nullopt; | 269 | return std::nullopt; |
| 270 | } | 270 | } |
| 271 | 271 | ||
| 272 | Memory::TextCheatParser parser; | 272 | Core::Memory::TextCheatParser parser; |
| 273 | return parser.Parse( | 273 | return parser.Parse( |
| 274 | system, std::string_view(reinterpret_cast<const char* const>(data.data()), data.size())); | 274 | system, std::string_view(reinterpret_cast<const char* const>(data.data()), data.size())); |
| 275 | } | 275 | } |
| 276 | 276 | ||
| 277 | } // Anonymous namespace | 277 | } // Anonymous namespace |
| 278 | 278 | ||
| 279 | std::vector<Memory::CheatEntry> PatchManager::CreateCheatList( | 279 | std::vector<Core::Memory::CheatEntry> PatchManager::CreateCheatList( |
| 280 | const Core::System& system, const std::array<u8, 32>& build_id_) const { | 280 | const Core::System& system, const std::array<u8, 32>& build_id_) const { |
| 281 | const auto load_dir = system.GetFileSystemController().GetModificationLoadRoot(title_id); | 281 | const auto load_dir = system.GetFileSystemController().GetModificationLoadRoot(title_id); |
| 282 | if (load_dir == nullptr) { | 282 | if (load_dir == nullptr) { |
| @@ -289,7 +289,7 @@ std::vector<Memory::CheatEntry> PatchManager::CreateCheatList( | |||
| 289 | std::sort(patch_dirs.begin(), patch_dirs.end(), | 289 | std::sort(patch_dirs.begin(), patch_dirs.end(), |
| 290 | [](const VirtualDir& l, const VirtualDir& r) { return l->GetName() < r->GetName(); }); | 290 | [](const VirtualDir& l, const VirtualDir& r) { return l->GetName() < r->GetName(); }); |
| 291 | 291 | ||
| 292 | std::vector<Memory::CheatEntry> out; | 292 | std::vector<Core::Memory::CheatEntry> out; |
| 293 | for (const auto& subdir : patch_dirs) { | 293 | for (const auto& subdir : patch_dirs) { |
| 294 | if (std::find(disabled.cbegin(), disabled.cend(), subdir->GetName()) != disabled.cend()) { | 294 | if (std::find(disabled.cbegin(), disabled.cend(), subdir->GetName()) != disabled.cend()) { |
| 295 | continue; | 295 | continue; |
diff --git a/src/core/file_sys/patch_manager.h b/src/core/file_sys/patch_manager.h index e857e6e82..ec6db524d 100644 --- a/src/core/file_sys/patch_manager.h +++ b/src/core/file_sys/patch_manager.h | |||
| @@ -51,8 +51,8 @@ public: | |||
| 51 | bool HasNSOPatch(const std::array<u8, 0x20>& build_id) const; | 51 | bool HasNSOPatch(const std::array<u8, 0x20>& build_id) const; |
| 52 | 52 | ||
| 53 | // Creates a CheatList object with all | 53 | // Creates a CheatList object with all |
| 54 | std::vector<Memory::CheatEntry> CreateCheatList(const Core::System& system, | 54 | std::vector<Core::Memory::CheatEntry> CreateCheatList( |
| 55 | const std::array<u8, 0x20>& build_id) const; | 55 | const Core::System& system, const std::array<u8, 0x20>& build_id) const; |
| 56 | 56 | ||
| 57 | // Currently tracked RomFS patches: | 57 | // Currently tracked RomFS patches: |
| 58 | // - Game Updates | 58 | // - Game Updates |