VERY experimental Nintendo Switch 2 emulator
C++
file_sys/registered_cache: Ignore DeltaFragment NCAs during installation
Bakugo88a70b40bafd
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cppindex 4608490e01..46f9314d07 100644--- a/src/core/file_sys/registered_cache.cpp+++ b/src/core/file_sys/registered_cache.cpp@@ -415,6 +415,9 @@ InstallResult RegisteredCache::InstallEntry(const NSP& nsp, bool overwrite_if_exconst auto cnmt_file = section0->GetFiles()[0];const CNMT cnmt(cnmt_file);for (const auto& record : cnmt.GetContentRecords()) {+ // Ignore DeltaFragments, they are not useful to us+ if (record.type == ContentRecordType::DeltaFragment)+ continue;const auto nca = GetNCAFromNSPForID(nsp, record.nca_id);if (nca == nullptr)return InstallResult::ErrorCopyFailed;