diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-02-16 22:37:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 22:37:09 +0100 |
commit | 4514325b9cc792b36dbbb05e2f31a62543ab753c (patch) | |
tree | a6593b3ce8f6a2804584c60fab5dd2b61561c3a7 /src/core | |
parent | Merge pull request #7877 from lat9nq/upd_rev (diff) | |
parent | Dump patched exefs rather than base (diff) | |
download | yuzu-4514325b9cc792b36dbbb05e2f31a62543ab753c.tar yuzu-4514325b9cc792b36dbbb05e2f31a62543ab753c.tar.gz yuzu-4514325b9cc792b36dbbb05e2f31a62543ab753c.tar.bz2 yuzu-4514325b9cc792b36dbbb05e2f31a62543ab753c.tar.lz yuzu-4514325b9cc792b36dbbb05e2f31a62543ab753c.tar.xz yuzu-4514325b9cc792b36dbbb05e2f31a62543ab753c.tar.zst yuzu-4514325b9cc792b36dbbb05e2f31a62543ab753c.zip |
Diffstat (limited to 'src/core')
-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 { if (exefs == nullptr) return exefs; - if (Settings::values.dump_exefs) { - LOG_INFO(Loader, "Dumping ExeFS for title_id={:016X}", title_id); - const auto dump_dir = fs_controller.GetModificationDumpRoot(title_id); - if (dump_dir != nullptr) { - const auto exefs_dir = GetOrCreateDirectoryRelative(dump_dir, "/exefs"); - VfsRawCopyD(exefs, exefs_dir); - } - } - const auto& disabled = Settings::values.disabled_addons[title_id]; const auto update_disabled = std::find(disabled.cbegin(), disabled.cend(), "Update") != disabled.cend(); @@ -179,6 +170,15 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { } } + if (Settings::values.dump_exefs) { + LOG_INFO(Loader, "Dumping ExeFS for title_id={:016X}", title_id); + const auto dump_dir = fs_controller.GetModificationDumpRoot(title_id); + if (dump_dir != nullptr) { + const auto exefs_dir = GetOrCreateDirectoryRelative(dump_dir, "/exefs"); + VfsRawCopyD(exefs, exefs_dir); + } + } + return exefs; } |