aboutsummaryrefslogtreecommitdiff
path: root/src/core/loader/deconstructed_rom_directory.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-05-02 22:14:15 -0400
committerLioncash <mathew1800@gmail.com>2021-05-03 01:19:13 -0400
commitebb64d5bf4c6a1b3e89e7addbd72ca310be7807b (patch)
tree024cebd87e461cc8212810576b0e759321911f1f /src/core/loader/deconstructed_rom_directory.h
parentc17a59b58e4c78dfee976dabddd13c3c6fdf95b7 (diff)
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/deconstructed_rom_directory.h')
-rw-r--r--src/core/loader/deconstructed_rom_directory.h11
1 files changed, 7 insertions, 4 deletions
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:
bool override_update = false);
/**
- * Returns the type of the file
- * @param file open file
- * @return FileType found, or FileType::Error if this loader doesn't know it
+ * Identifies whether or not the given file is a deconstructed ROM directory.
+ *
+ * @param dir_file The file to verify.
+ *
+ * @return FileType::DeconstructedRomDirectory, or FileType::Error
+ * if the file is not a deconstructed ROM directory.
*/
- static FileType IdentifyType(const FileSys::VirtualFile& file);
+ static FileType IdentifyType(const FileSys::VirtualFile& dir_file);
FileType GetFileType() const override {
return IdentifyType(file);