summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-08-16 18:25:36 +0200
committerLiam <byteslice@airmail.cc>2023-08-16 22:30:41 +0200
commit775bf8e215c8c771b45f383b0b2ce46fa37ebe95 (patch)
tree010dcb12e55563bf088b9d581dd14e142a856809 /src/core
parentfssystem: rework for yuzu style (diff)
downloadyuzu-775bf8e215c8c771b45f383b0b2ce46fa37ebe95.tar
yuzu-775bf8e215c8c771b45f383b0b2ce46fa37ebe95.tar.gz
yuzu-775bf8e215c8c771b45f383b0b2ce46fa37ebe95.tar.bz2
yuzu-775bf8e215c8c771b45f383b0b2ce46fa37ebe95.tar.lz
yuzu-775bf8e215c8c771b45f383b0b2ce46fa37ebe95.tar.xz
yuzu-775bf8e215c8c771b45f383b0b2ce46fa37ebe95.tar.zst
yuzu-775bf8e215c8c771b45f383b0b2ce46fa37ebe95.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/card_image.cpp2
-rw-r--r--src/core/file_sys/registered_cache.cpp2
-rw-r--r--src/core/file_sys/submission_package.cpp2
3 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 4920905a6..3b2588c84 100644
--- a/src/core/file_sys/card_image.cpp
+++ b/src/core/file_sys/card_image.cpp
@@ -185,7 +185,7 @@ u32 XCI::GetSystemUpdateVersion() {
for (const auto& update_file : update->GetFiles()) {
NCA nca{update_file};
- if (nca.GetStatus() != Loader::ResultStatus::Success) {
+ if (nca.GetStatus() != Loader::ResultStatus::Success || nca.GetSubdirectories().empty()) {
continue;
}
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp
index e4218523a..a28af3594 100644
--- a/src/core/file_sys/registered_cache.cpp
+++ b/src/core/file_sys/registered_cache.cpp
@@ -418,7 +418,7 @@ void RegisteredCache::ProcessFiles(const std::vector<NcaID>& ids) {
continue;
const auto nca = std::make_shared<NCA>(parser(file, id));
if (nca->GetStatus() != Loader::ResultStatus::Success ||
- nca->GetType() != NCAContentType::Meta) {
+ nca->GetType() != NCAContentType::Meta || nca->GetSubdirectories().empty()) {
continue;
}
diff --git a/src/core/file_sys/submission_package.cpp b/src/core/file_sys/submission_package.cpp
index 73582ad50..e1e89ce2d 100644
--- a/src/core/file_sys/submission_package.cpp
+++ b/src/core/file_sys/submission_package.cpp
@@ -249,7 +249,7 @@ void NSP::ReadNCAs(const std::vector<VirtualFile>& files) {
}
const auto nca = std::make_shared<NCA>(outer_file);
- if (nca->GetStatus() != Loader::ResultStatus::Success) {
+ if (nca->GetStatus() != Loader::ResultStatus::Success || nca->GetSubdirectories().empty()) {
program_status[nca->GetTitleId()] = nca->GetStatus();
continue;
}