mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-23 05:05:47 +01:00
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.
This commit is contained in:
parent
eb26e9e711
commit
dd43d725c6
@ -1304,7 +1304,9 @@ void GMainWindow::OnGameListDumpRomFS(u64 program_id, const std::string& game_pa
|
|||||||
FileSys::VirtualFile romfs;
|
FileSys::VirtualFile romfs;
|
||||||
|
|
||||||
if (*romfs_title_id == program_id) {
|
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 {
|
} else {
|
||||||
romfs = installed.GetEntry(*romfs_title_id, FileSys::ContentRecordType::Data)->GetRomFS();
|
romfs = installed.GetEntry(*romfs_title_id, FileSys::ContentRecordType::Data)->GetRomFS();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user