summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ben Russell2020-04-23 13:05:50 +0100
committerGravatar Ben Russell2020-04-23 13:06:18 +0100
commitdd43d725c619980bb07d3cae0410b15c51dbdfd7 (patch)
treee91b3d3e702d18445f40959b744eec8fb10fa597
parentMerge pull request #3730 from lioncash/time (diff)
downloadyuzu-dd43d725c619980bb07d3cae0410b15c51dbdfd7.tar.gz
yuzu-dd43d725c619980bb07d3cae0410b15c51dbdfd7.tar.xz
yuzu-dd43d725c619980bb07d3cae0410b15c51dbdfd7.zip
Dump RomFS command to include Updates
Patch the RomFS with the selected updates before dumping. Previously the resulting RomFS only contained data from the original title. To dump the RomFS without updates the user can disable the update under Properties before choosing Dump RomFS.
-rw-r--r--src/yuzu/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 05baec7e1..506f75307 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1304,7 +1304,9 @@ void GMainWindow::OnGameListDumpRomFS(u64 program_id, const std::string& game_pa
1304 FileSys::VirtualFile romfs; 1304 FileSys::VirtualFile romfs;
1305 1305
1306 if (*romfs_title_id == program_id) { 1306 if (*romfs_title_id == program_id) {
1307 romfs = file; 1307 u64 ivfc_offset = loader->ReadRomFSIVFCOffset();
1308 FileSys::PatchManager pm{program_id};
1309 romfs = pm.PatchRomFS(file, ivfc_offset, FileSys::ContentRecordType::Program);
1308 } else { 1310 } else {
1309 romfs = installed.GetEntry(*romfs_title_id, FileSys::ContentRecordType::Data)->GetRomFS(); 1311 romfs = installed.GetEntry(*romfs_title_id, FileSys::ContentRecordType::Data)->GetRomFS();
1310 } 1312 }