diff options
| author | 2018-08-27 18:15:49 -0400 | |
|---|---|---|
| committer | 2018-08-27 18:15:49 -0400 | |
| commit | 5d2043598e0d0179ebae4d1508a4c212d7c44836 (patch) | |
| tree | ae26cf6fa86fb3303de11db49adff04c6fd46ab6 /src | |
| parent | Merge pull request #1128 from DarkLordZach/malformed-hex-crash (diff) | |
| parent | registered_cache: Get rid of variable shadowing in ProcessFiles() (diff) | |
| download | yuzu-5d2043598e0d0179ebae4d1508a4c212d7c44836.tar.gz yuzu-5d2043598e0d0179ebae4d1508a4c212d7c44836.tar.xz yuzu-5d2043598e0d0179ebae4d1508a4c212d7c44836.zip | |
Merge pull request #1187 from lioncash/shadow
registered_cache: Get rid of variable shadowing in ProcessFiles()
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/registered_cache.cpp | 6 |
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) { | |||
| 216 | 216 | ||
| 217 | const auto section0 = nca->GetSubdirectories()[0]; | 217 | const auto section0 = nca->GetSubdirectories()[0]; |
| 218 | 218 | ||
| 219 | for (const auto& file : section0->GetFiles()) { | 219 | for (const auto& section0_file : section0->GetFiles()) { |
| 220 | if (file->GetExtension() != "cnmt") | 220 | if (section0_file->GetExtension() != "cnmt") |
| 221 | continue; | 221 | continue; |
| 222 | 222 | ||
| 223 | meta.insert_or_assign(nca->GetTitleId(), CNMT(file)); | 223 | meta.insert_or_assign(nca->GetTitleId(), CNMT(section0_file)); |
| 224 | meta_id.insert_or_assign(nca->GetTitleId(), id); | 224 | meta_id.insert_or_assign(nca->GetTitleId(), id); |
| 225 | break; | 225 | break; |
| 226 | } | 226 | } |