aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-08-28 21:14:22 -0400
committerLiam <byteslice@airmail.cc>2023-08-28 21:14:35 -0400
commit9df3794a8383493729bb60fb63c1cc5eb9c65dc9 (patch)
treef032a77f1f34352b2f0d497b42cb716f2726266d /src/yuzu/main.cpp
parentf260c74beb4af482f90cdf4e54dfecb90d8c6074 (diff)
qt: ensure packed update nca is applied to the correct base
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r--src/yuzu/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 81dfbca221..ba4084840c 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();