summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-23 17:25:43 +0200
committerLioncash <mathew1800@gmail.com>2020-08-23 17:25:45 +0200
commit67a8e73101a98cc6e9be36d12b0ffad21c5a554d (patch)
treea67bc78ac8ae0d9c40a94c20f4b1581242e3852a /src/core
parentregistered_cache: Make use of designated initializers (diff)
downloadyuzu-67a8e73101a98cc6e9be36d12b0ffad21c5a554d.tar
yuzu-67a8e73101a98cc6e9be36d12b0ffad21c5a554d.tar.gz
yuzu-67a8e73101a98cc6e9be36d12b0ffad21c5a554d.tar.bz2
yuzu-67a8e73101a98cc6e9be36d12b0ffad21c5a554d.tar.lz
yuzu-67a8e73101a98cc6e9be36d12b0ffad21c5a554d.tar.xz
yuzu-67a8e73101a98cc6e9be36d12b0ffad21c5a554d.tar.zst
yuzu-67a8e73101a98cc6e9be36d12b0ffad21c5a554d.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/registered_cache.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp
index a97f079c0..da01002d5 100644
--- a/src/core/file_sys/registered_cache.cpp
+++ b/src/core/file_sys/registered_cache.cpp
@@ -257,8 +257,7 @@ std::vector<NcaID> PlaceholderCache::List() const {
for (const auto& sdir : dir->GetSubdirectories()) {
for (const auto& file : sdir->GetFiles()) {
const auto name = file->GetName();
- if (name.length() == 36 && name[32] == '.' && name[33] == 'n' && name[34] == 'c' &&
- name[35] == 'a') {
+ if (name.length() == 36 && name.ends_with(".nca")) {
out.push_back(Common::HexStringToArray<0x10>(name.substr(0, 32)));
}
}