mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
file_sys: tolerate empty NCA
This commit is contained in:
parent
50eee9b218
commit
775bf8e215
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue