瀏覽代碼

xci: Ignore NCA files with updates in secure

Zach Hilman 8 年之前
父節點
當前提交
d1a6dd61d1
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/core/file_sys/card_image.cpp

+ 3 - 0
src/core/file_sys/card_image.cpp

@@ -149,6 +149,9 @@ Loader::ResultStatus XCI::AddNCAFromPartition(XCIPartition part) {
         if (file->GetExtension() != "nca")
             continue;
         auto nca = std::make_shared<NCA>(file);
+        // TODO(DarkLordZach): Add proper Rev1+ Support
+        if (nca->IsUpdate())
+            continue;
         if (nca->GetType() == NCAContentType::Program) {
             program_nca_status = nca->GetStatus();
         }