summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-03-27 23:06:27 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-03-27 23:06:27 +0200
commitea7a0d4652692eb0cd78c721b809d7e0e2563def (patch)
treeb53945be4101da3b7a1fad8a0ee0f32aec3d6b6e
parentMerge pull request #8095 from bylaws/master (diff)
downloadyuzu-ea7a0d4652692eb0cd78c721b809d7e0e2563def.tar
yuzu-ea7a0d4652692eb0cd78c721b809d7e0e2563def.tar.gz
yuzu-ea7a0d4652692eb0cd78c721b809d7e0e2563def.tar.bz2
yuzu-ea7a0d4652692eb0cd78c721b809d7e0e2563def.tar.lz
yuzu-ea7a0d4652692eb0cd78c721b809d7e0e2563def.tar.xz
yuzu-ea7a0d4652692eb0cd78c721b809d7e0e2563def.tar.zst
yuzu-ea7a0d4652692eb0cd78c721b809d7e0e2563def.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/registered_cache.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp
index 7a646b5f1..4ada4a69b 100644
--- a/src/core/file_sys/registered_cache.cpp
+++ b/src/core/file_sys/registered_cache.cpp
@@ -387,15 +387,17 @@ std::vector<NcaID> RegisteredCache::AccumulateFiles() const {
continue;
for (const auto& nca_dir : d2_dir->GetSubdirectories()) {
- if (!FollowsNcaIdFormat(nca_dir->GetName()))
+ if (nca_dir == nullptr || !FollowsNcaIdFormat(nca_dir->GetName())) {
continue;
+ }
ids.push_back(Common::HexStringToArray<0x10, true>(nca_dir->GetName().substr(0, 0x20)));
}
for (const auto& nca_file : d2_dir->GetFiles()) {
- if (!FollowsNcaIdFormat(nca_file->GetName()))
+ if (nca_file == nullptr || !FollowsNcaIdFormat(nca_file->GetName())) {
continue;
+ }
ids.push_back(
Common::HexStringToArray<0x10, true>(nca_file->GetName().substr(0, 0x20)));