diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 7c0950bb0..f19ac4607 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp | |||
| @@ -128,15 +128,6 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { | |||
| 128 | if (exefs == nullptr) | 128 | if (exefs == nullptr) |
| 129 | return exefs; | 129 | return exefs; |
| 130 | 130 | ||
| 131 | if (Settings::values.dump_exefs) { | ||
| 132 | LOG_INFO(Loader, "Dumping ExeFS for title_id={:016X}", title_id); | ||
| 133 | const auto dump_dir = fs_controller.GetModificationDumpRoot(title_id); | ||
| 134 | if (dump_dir != nullptr) { | ||
| 135 | const auto exefs_dir = GetOrCreateDirectoryRelative(dump_dir, "/exefs"); | ||
| 136 | VfsRawCopyD(exefs, exefs_dir); | ||
| 137 | } | ||
| 138 | } | ||
| 139 | |||
| 140 | const auto& disabled = Settings::values.disabled_addons[title_id]; | 131 | const auto& disabled = Settings::values.disabled_addons[title_id]; |
| 141 | const auto update_disabled = | 132 | const auto update_disabled = |
| 142 | std::find(disabled.cbegin(), disabled.cend(), "Update") != disabled.cend(); | 133 | std::find(disabled.cbegin(), disabled.cend(), "Update") != disabled.cend(); |
| @@ -179,6 +170,15 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { | |||
| 179 | } | 170 | } |
| 180 | } | 171 | } |
| 181 | 172 | ||
| 173 | if (Settings::values.dump_exefs) { | ||
| 174 | LOG_INFO(Loader, "Dumping ExeFS for title_id={:016X}", title_id); | ||
| 175 | const auto dump_dir = fs_controller.GetModificationDumpRoot(title_id); | ||
| 176 | if (dump_dir != nullptr) { | ||
| 177 | const auto exefs_dir = GetOrCreateDirectoryRelative(dump_dir, "/exefs"); | ||
| 178 | VfsRawCopyD(exefs, exefs_dir); | ||
| 179 | } | ||
| 180 | } | ||
| 181 | |||
| 182 | return exefs; | 182 | return exefs; |
| 183 | } | 183 | } |
| 184 | 184 | ||