diff options
| author | Bakugo <bakugo@b4k.co> | 2019-07-01 06:37:22 +0100 |
|---|---|---|
| committer | Bakugo <bakugo@b4k.co> | 2019-07-01 06:37:22 +0100 |
| commit | 88a70b40bafddd9a843905a740ca33dcc3633d28 (patch) | |
| tree | 773f55fba35363f15e23a101e1b540207c186315 /src/core/file_sys/registered_cache.cpp | |
| parent | 29f1d01c06e2bdd76a6798a75b111f93e3316332 (diff) | |
file_sys/registered_cache: Ignore DeltaFragment NCAs during installation
DeltaFragments are only used to download and apply partial patches on a real console, and are not useful to us at all. Most patch NSPs do not include them, and when they do, it's a waste of space to install them.
Diffstat (limited to 'src/core/file_sys/registered_cache.cpp')
| -rw-r--r-- | src/core/file_sys/registered_cache.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp index 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_ex const 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; |
