diff options
| author | 2023-08-28 21:14:22 -0400 | |
|---|---|---|
| committer | 2023-08-28 21:14:35 -0400 | |
| commit | 9df3794a8383493729bb60fb63c1cc5eb9c65dc9 (patch) | |
| tree | f032a77f1f34352b2f0d497b42cb716f2726266d | |
| parent | qt: fix romfs dumping for multiprogram applications (diff) | |
| download | yuzu-9df3794a8383493729bb60fb63c1cc5eb9c65dc9.tar.gz yuzu-9df3794a8383493729bb60fb63c1cc5eb9c65dc9.tar.xz yuzu-9df3794a8383493729bb60fb63c1cc5eb9c65dc9.zip | |
qt: ensure packed update nca is applied to the correct base
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 81dfbca22..ba4084840 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -2592,6 +2592,13 @@ void GMainWindow::OnGameListDumpRomFS(u64 program_id, const std::string& game_pa | |||
| 2592 | return; | 2592 | return; |
| 2593 | } | 2593 | } |
| 2594 | 2594 | ||
| 2595 | const FileSys::NCA update_nca{packed_update_raw, nullptr}; | ||
| 2596 | if (type != FileSys::ContentRecordType::Program || | ||
| 2597 | update_nca.GetStatus() != Loader::ResultStatus::ErrorMissingBKTRBaseRomFS || | ||
| 2598 | update_nca.GetTitleId() != FileSys::GetUpdateTitleID(title_id)) { | ||
| 2599 | packed_update_raw = {}; | ||
| 2600 | } | ||
| 2601 | |||
| 2595 | const auto base_romfs = base_nca->GetRomFS(); | 2602 | const auto base_romfs = base_nca->GetRomFS(); |
| 2596 | if (!base_romfs) { | 2603 | if (!base_romfs) { |
| 2597 | failed(); | 2604 | failed(); |