diff options
author | Bakugo <bakugo@b4k.co> | 2019-07-01 06:46:05 +0100 |
---|---|---|
committer | Bakugo <bakugo@b4k.co> | 2019-07-01 06:46:05 +0100 |
commit | 9968c0883af49a760c6f5c1b63fef9493d32008a (patch) | |
tree | fd9c9732c1856c25fc23f14a0a8a059a5dc23fb4 /src | |
parent | 79163fca80385b11c72dab286041c16e59cd1dd8 (diff) |
file_sys/submission_package: Don't warn about missing DeltaFragment NCAs
DeltaFragments are not useful to us and are often not included in patch NSPs.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_sys/submission_package.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/file_sys/submission_package.cpp b/src/core/file_sys/submission_package.cpp index d0428a457..8b3b14e25 100644 --- a/src/core/file_sys/submission_package.cpp +++ b/src/core/file_sys/submission_package.cpp @@ -248,10 +248,13 @@ void NSP::ReadNCAs(const std::vector<VirtualFile>& files) { auto next_file = pfs->GetFile(fmt::format("{}.nca", id_string)); if (next_file == nullptr) { - LOG_WARNING(Service_FS, - "NCA with ID {}.nca is listed in content metadata, but cannot " - "be found in PFS. NSP appears to be corrupted.", - id_string); + if (rec.type != ContentRecordType::DeltaFragment) { + LOG_WARNING(Service_FS, + "NCA with ID {}.nca is listed in content metadata, but cannot " + "be found in PFS. NSP appears to be corrupted.", + id_string); + } + continue; } |