mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
qt: ensure packed update nca is applied to the correct base
This commit is contained in:
parent
f260c74beb
commit
9df3794a83
1 changed files with 7 additions and 0 deletions
|
@ -2592,6 +2592,13 @@ void GMainWindow::OnGameListDumpRomFS(u64 program_id, const std::string& game_pa
|
||||||
return;
|
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();
|
const auto base_romfs = base_nca->GetRomFS();
|
||||||
if (!base_romfs) {
|
if (!base_romfs) {
|
||||||
failed();
|
failed();
|
||||||
|
|
Loading…
Reference in a new issue