From 9df3794a8383493729bb60fb63c1cc5eb9c65dc9 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 28 Aug 2023 21:14:22 -0400 Subject: qt: ensure packed update nca is applied to the correct base --- src/yuzu/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 return; } + const FileSys::NCA update_nca{packed_update_raw, nullptr}; + if (type != FileSys::ContentRecordType::Program || + update_nca.GetStatus() != Loader::ResultStatus::ErrorMissingBKTRBaseRomFS || + update_nca.GetTitleId() != FileSys::GetUpdateTitleID(title_id)) { + packed_update_raw = {}; + } + const auto base_romfs = base_nca->GetRomFS(); if (!base_romfs) { failed(); -- cgit v1.2.3