diff options
| author | Fernando S <fsahmkow27@gmail.com> | 2023-08-21 16:29:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-21 16:29:04 +0200 |
| commit | 861597eb2e32663dba37813273ff91434566523a (patch) | |
| tree | a05b7c596209f754a822c03cca162c6f32b6a565 /src/core/file_sys/card_image.cpp | |
| parent | 6a5db5679b61d3d73244e42682f1b34d401e7736 (diff) | |
| parent | 775bf8e215c8c771b45f383b0b2ce46fa37ebe95 (diff) | |
Merge pull request #11284 from liamwhite/nca-release
vfs: expand support for NCA reading
Diffstat (limited to 'src/core/file_sys/card_image.cpp')
| -rw-r--r-- | src/core/file_sys/card_image.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/card_image.cpp b/src/core/file_sys/card_image.cpp index 5d02865f4..3b2588c84 100644 --- a/src/core/file_sys/card_image.cpp +++ b/src/core/file_sys/card_image.cpp @@ -183,9 +183,9 @@ u32 XCI::GetSystemUpdateVersion() { } for (const auto& update_file : update->GetFiles()) { - NCA nca{update_file, nullptr, 0}; + NCA nca{update_file}; - if (nca.GetStatus() != Loader::ResultStatus::Success) { + if (nca.GetStatus() != Loader::ResultStatus::Success || nca.GetSubdirectories().empty()) { continue; } @@ -296,7 +296,7 @@ Loader::ResultStatus XCI::AddNCAFromPartition(XCIPartition part) { continue; } - auto nca = std::make_shared<NCA>(partition_file, nullptr, 0); + auto nca = std::make_shared<NCA>(partition_file); if (nca->IsUpdate()) { continue; } |
