diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-02-15 05:52:28 +0100 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-02-15 05:52:28 +0100 |
commit | e1201abc1efefcb4fce33f8adfb41f0fcbccddeb (patch) | |
tree | 124360507ac3edd70827d062be0653c80e5edf82 /src/core/file_sys | |
parent | Merge pull request #7890 from Morph1984/utf8-console (diff) | |
download | yuzu-e1201abc1efefcb4fce33f8adfb41f0fcbccddeb.tar yuzu-e1201abc1efefcb4fce33f8adfb41f0fcbccddeb.tar.gz yuzu-e1201abc1efefcb4fce33f8adfb41f0fcbccddeb.tar.bz2 yuzu-e1201abc1efefcb4fce33f8adfb41f0fcbccddeb.tar.lz yuzu-e1201abc1efefcb4fce33f8adfb41f0fcbccddeb.tar.xz yuzu-e1201abc1efefcb4fce33f8adfb41f0fcbccddeb.tar.zst yuzu-e1201abc1efefcb4fce33f8adfb41f0fcbccddeb.zip |
Diffstat (limited to 'src/core/file_sys')
-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; } |