summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-20 23:49:09 +0100
committerZach Hilman <zachhilman@gmail.com>2018-11-20 23:49:09 +0100
commit17d8e25cbfd0c8937c8791bc1941af85f9541666 (patch)
tree334d1ccaa0fdba0cd02cf4b721de2b0408ca62c6 /src/core
parentMerge pull request #1722 from MysticExile/enable-applictation-crash-report (diff)
downloadyuzu-17d8e25cbfd0c8937c8791bc1941af85f9541666.tar
yuzu-17d8e25cbfd0c8937c8791bc1941af85f9541666.tar.gz
yuzu-17d8e25cbfd0c8937c8791bc1941af85f9541666.tar.bz2
yuzu-17d8e25cbfd0c8937c8791bc1941af85f9541666.tar.lz
yuzu-17d8e25cbfd0c8937c8791bc1941af85f9541666.tar.xz
yuzu-17d8e25cbfd0c8937c8791bc1941af85f9541666.tar.zst
yuzu-17d8e25cbfd0c8937c8791bc1941af85f9541666.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/patch_manager.cpp9
-rw-r--r--src/core/settings.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp
index 8d062eb3e..f56b1c773 100644
--- a/src/core/file_sys/patch_manager.cpp
+++ b/src/core/file_sys/patch_manager.cpp
@@ -57,6 +57,15 @@ 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 = Service::FileSystem::GetModificationDumpRoot(title_id);
+ if (dump_dir != nullptr) {
+ const auto exefs_dir = GetOrCreateDirectoryRelative(dump_dir, "/exefs");
+ VfsRawCopyD(exefs, exefs_dir);
+ }
+ }
+
const auto installed = Service::FileSystem::GetUnionContents();
// Game Updates
diff --git a/src/core/settings.h b/src/core/settings.h
index e424479f2..9767bc162 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -159,6 +159,7 @@ struct Values {
bool use_gdbstub;
u16 gdbstub_port;
std::string program_args;
+ bool dump_exefs;
bool dump_nso;
// WebService