summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-28 00:15:49 +0200
committerGitHub <noreply@github.com>2018-08-28 00:15:49 +0200
commit5d2043598e0d0179ebae4d1508a4c212d7c44836 (patch)
treeae26cf6fa86fb3303de11db49adff04c6fd46ab6
parentMerge pull request #1128 from DarkLordZach/malformed-hex-crash (diff)
parentregistered_cache: Get rid of variable shadowing in ProcessFiles() (diff)
downloadyuzu-5d2043598e0d0179ebae4d1508a4c212d7c44836.tar
yuzu-5d2043598e0d0179ebae4d1508a4c212d7c44836.tar.gz
yuzu-5d2043598e0d0179ebae4d1508a4c212d7c44836.tar.bz2
yuzu-5d2043598e0d0179ebae4d1508a4c212d7c44836.tar.lz
yuzu-5d2043598e0d0179ebae4d1508a4c212d7c44836.tar.xz
yuzu-5d2043598e0d0179ebae4d1508a4c212d7c44836.tar.zst
yuzu-5d2043598e0d0179ebae4d1508a4c212d7c44836.zip
-rw-r--r--src/core/file_sys/registered_cache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp
index a02efc71e..dacf8568b 100644
--- a/src/core/file_sys/registered_cache.cpp
+++ b/src/core/file_sys/registered_cache.cpp
@@ -216,11 +216,11 @@ void RegisteredCache::ProcessFiles(const std::vector<NcaID>& ids) {
const auto section0 = nca->GetSubdirectories()[0];
- for (const auto& file : section0->GetFiles()) {
- if (file->GetExtension() != "cnmt")
+ for (const auto& section0_file : section0->GetFiles()) {
+ if (section0_file->GetExtension() != "cnmt")
continue;
- meta.insert_or_assign(nca->GetTitleId(), CNMT(file));
+ meta.insert_or_assign(nca->GetTitleId(), CNMT(section0_file));
meta_id.insert_or_assign(nca->GetTitleId(), id);
break;
}