diff options
author | Lioncash <mathew1800@gmail.com> | 2021-05-03 04:14:15 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-05-03 07:19:13 +0200 |
commit | ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b (patch) | |
tree | 024cebd87e461cc8212810576b0e759321911f1f /src/core/loader | |
parent | Merge pull request #6269 from lioncash/file-shadow (diff) | |
download | yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.gz yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.bz2 yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.lz yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.xz yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.zst yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/loader/deconstructed_rom_directory.cpp | 4 | ||||
-rw-r--r-- | src/core/loader/deconstructed_rom_directory.h | 11 |
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( : AppLoader(directory->GetFile("main")), dir(std::move(directory)), override_update(override_update) {} -FileType AppLoader_DeconstructedRomDirectory::IdentifyType(const FileSys::VirtualFile& file) { - if (FileSys::IsDirectoryExeFS(file->GetContainingDirectory())) { +FileType AppLoader_DeconstructedRomDirectory::IdentifyType(const FileSys::VirtualFile& dir_file) { + if (FileSys::IsDirectoryExeFS(dir_file->GetContainingDirectory())) { return FileType::DeconstructedRomDirectory; } 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); |