diff options
| author | 2019-07-01 06:37:22 +0100 | |
|---|---|---|
| committer | 2019-07-01 06:37:22 +0100 | |
| commit | 79163fca80385b11c72dab286041c16e59cd1dd8 (patch) | |
| tree | 773f55fba35363f15e23a101e1b540207c186315 /src | |
| parent | file_sys: Rename ContentRecordType::Patch to DeltaFragment (diff) | |
| download | yuzu-79163fca80385b11c72dab286041c16e59cd1dd8.tar.gz yuzu-79163fca80385b11c72dab286041c16e59cd1dd8.tar.xz yuzu-79163fca80385b11c72dab286041c16e59cd1dd8.zip | |
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')
| -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 4608490e0..46f9314d0 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 | |||
| 415 | const auto cnmt_file = section0->GetFiles()[0]; | 415 | const auto cnmt_file = section0->GetFiles()[0]; |
| 416 | const CNMT cnmt(cnmt_file); | 416 | const CNMT cnmt(cnmt_file); |
| 417 | for (const auto& record : cnmt.GetContentRecords()) { | 417 | for (const auto& record : cnmt.GetContentRecords()) { |
| 418 | // Ignore DeltaFragments, they are not useful to us | ||
| 419 | if (record.type == ContentRecordType::DeltaFragment) | ||
| 420 | continue; | ||
| 418 | const auto nca = GetNCAFromNSPForID(nsp, record.nca_id); | 421 | const auto nca = GetNCAFromNSPForID(nsp, record.nca_id); |
| 419 | if (nca == nullptr) | 422 | if (nca == nullptr) |
| 420 | return InstallResult::ErrorCopyFailed; | 423 | return InstallResult::ErrorCopyFailed; |