forked from ShuriZma/suyu
1
0
Fork 0

Merge pull request #1187 from lioncash/shadow

registered_cache: Get rid of variable shadowing in ProcessFiles()
This commit is contained in:
bunnei 2018-08-27 18:15:49 -04:00 committed by GitHub
commit 5d2043598e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -216,11 +216,11 @@ void RegisteredCache::ProcessFiles(const std::vector<NcaID>& ids) {
const auto section0 = nca->GetSubdirectories()[0]; const auto section0 = nca->GetSubdirectories()[0];
for (const auto& file : section0->GetFiles()) { for (const auto& section0_file : section0->GetFiles()) {
if (file->GetExtension() != "cnmt") if (section0_file->GetExtension() != "cnmt")
continue; 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); meta_id.insert_or_assign(nca->GetTitleId(), id);
break; break;
} }