From b14e413c35c8c3dba52c9fed8d3d42a0b7128533 Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Thu, 23 Apr 2020 13:05:50 +0100 Subject: [PATCH 1/2] 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. --- src/yuzu/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 05baec7e13..506f753072 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 FileSys::VirtualFile romfs; if (*romfs_title_id == program_id) { - romfs = file; + u64 ivfc_offset = loader->ReadRomFSIVFCOffset(); + FileSys::PatchManager pm{program_id}; + romfs = pm.PatchRomFS(file, ivfc_offset, FileSys::ContentRecordType::Program); } else { romfs = installed.GetEntry(*romfs_title_id, FileSys::ContentRecordType::Data)->GetRomFS(); } From 616289e6b5217cc01da37273c3f0d164293f5176 Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Thu, 23 Apr 2020 13:10:06 +0100 Subject: [PATCH 2/2] Update src/yuzu/main.cpp with missing const Co-Authored-By: Mat M. --- src/yuzu/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 506f753072..b44b4276ca 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1304,7 +1304,7 @@ void GMainWindow::OnGameListDumpRomFS(u64 program_id, const std::string& game_pa FileSys::VirtualFile romfs; if (*romfs_title_id == program_id) { - u64 ivfc_offset = loader->ReadRomFSIVFCOffset(); + const u64 ivfc_offset = loader->ReadRomFSIVFCOffset(); FileSys::PatchManager pm{program_id}; romfs = pm.PatchRomFS(file, ivfc_offset, FileSys::ContentRecordType::Program); } else {