Просмотр исходного кода

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.
Bakugo 7 лет назад
Родитель
Сommit
9968c0883a
1 измененных файлов с 7 добавлено и 4 удалено
  1. 7 4
      src/core/file_sys/submission_package.cpp

+ 7 - 4
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;
                 }