yuzu-emu
/
yuzu
Archived
1
0
Fork 0

file_sys: tolerate empty NCA

This commit is contained in:
Liam 2023-08-16 12:25:36 -04:00
parent 50eee9b218
commit 775bf8e215
3 changed files with 3 additions and 3 deletions

View File

@ -185,7 +185,7 @@ u32 XCI::GetSystemUpdateVersion() {
for (const auto& update_file : update->GetFiles()) {
NCA nca{update_file};
if (nca.GetStatus() != Loader::ResultStatus::Success) {
if (nca.GetStatus() != Loader::ResultStatus::Success || nca.GetSubdirectories().empty()) {
continue;
}

View File

@ -418,7 +418,7 @@ void RegisteredCache::ProcessFiles(const std::vector<NcaID>& ids) {
continue;
const auto nca = std::make_shared<NCA>(parser(file, id));
if (nca->GetStatus() != Loader::ResultStatus::Success ||
nca->GetType() != NCAContentType::Meta) {
nca->GetType() != NCAContentType::Meta || nca->GetSubdirectories().empty()) {
continue;
}

View File

@ -249,7 +249,7 @@ void NSP::ReadNCAs(const std::vector<VirtualFile>& files) {
}
const auto nca = std::make_shared<NCA>(outer_file);
if (nca->GetStatus() != Loader::ResultStatus::Success) {
if (nca->GetStatus() != Loader::ResultStatus::Success || nca->GetSubdirectories().empty()) {
program_status[nca->GetTitleId()] = nca->GetStatus();
continue;
}