summaryrefslogtreecommitdiff
path: root/src/core/loader
diff options
context:
space:
mode:
authorGravatar Lioncash2021-05-02 22:14:15 -0400
committerGravatar Lioncash2021-05-03 01:19:13 -0400
commitebb64d5bf4c6a1b3e89e7addbd72ca310be7807b (patch)
tree024cebd87e461cc8212810576b0e759321911f1f /src/core/loader
parentMerge pull request #6269 from lioncash/file-shadow (diff)
downloadyuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.gz
yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.xz
yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.zip
core: Resolve misc cases of variable shadowing
Resolves shadowing warnings that aren't in a particularly large subsection of core. Brings us closer to turning -Wshadow into an error. All that remains now is for cases in the kernel (left untouched for now since a big change by bunnei is pending), and a few left over in the service code (will be tackled next).
Diffstat (limited to 'src/core/loader')
-rw-r--r--src/core/loader/deconstructed_rom_directory.cpp4
-rw-r--r--src/core/loader/deconstructed_rom_directory.h11
2 files changed, 9 insertions, 6 deletions
diff --git a/src/core/loader/deconstructed_rom_directory.cpp b/src/core/loader/deconstructed_rom_directory.cpp
index ed776fc49..fed47ecda 100644
--- a/src/core/loader/deconstructed_rom_directory.cpp
+++ b/src/core/loader/deconstructed_rom_directory.cpp
@@ -79,8 +79,8 @@ AppLoader_DeconstructedRomDirectory::AppLoader_DeconstructedRomDirectory(
79 : AppLoader(directory->GetFile("main")), dir(std::move(directory)), 79 : AppLoader(directory->GetFile("main")), dir(std::move(directory)),
80 override_update(override_update) {} 80 override_update(override_update) {}
81 81
82FileType AppLoader_DeconstructedRomDirectory::IdentifyType(const FileSys::VirtualFile& file) { 82FileType AppLoader_DeconstructedRomDirectory::IdentifyType(const FileSys::VirtualFile& dir_file) {
83 if (FileSys::IsDirectoryExeFS(file->GetContainingDirectory())) { 83 if (FileSys::IsDirectoryExeFS(dir_file->GetContainingDirectory())) {
84 return FileType::DeconstructedRomDirectory; 84 return FileType::DeconstructedRomDirectory;
85 } 85 }
86 86
diff --git a/src/core/loader/deconstructed_rom_directory.h b/src/core/loader/deconstructed_rom_directory.h
index c2b46e1bf..22a4ec5a6 100644
--- a/src/core/loader/deconstructed_rom_directory.h
+++ b/src/core/loader/deconstructed_rom_directory.h
@@ -31,11 +31,14 @@ public:
31 bool override_update = false); 31 bool override_update = false);
32 32
33 /** 33 /**
34 * Returns the type of the file 34 * Identifies whether or not the given file is a deconstructed ROM directory.
35 * @param file open file 35 *
36 * @return FileType found, or FileType::Error if this loader doesn't know it 36 * @param dir_file The file to verify.
37 *
38 * @return FileType::DeconstructedRomDirectory, or FileType::Error
39 * if the file is not a deconstructed ROM directory.
37 */ 40 */
38 static FileType IdentifyType(const FileSys::VirtualFile& file); 41 static FileType IdentifyType(const FileSys::VirtualFile& dir_file);
39 42
40 FileType GetFileType() const override { 43 FileType GetFileType() const override {
41 return IdentifyType(file); 44 return IdentifyType(file);