diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-28 04:40:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 04:40:46 +0200 |
commit | b096ec68cdbf6f1064a8b6b855489d38c3e59f6a (patch) | |
tree | 605b89f42d7897aac46f06add54c34201d9354bd /src/core/loader/nro.h | |
parent | Merge pull request #6246 from lioncash/shadow (diff) | |
parent | loader: Resolve instances of variable shadowing (diff) | |
download | yuzu-b096ec68cdbf6f1064a8b6b855489d38c3e59f6a.tar yuzu-b096ec68cdbf6f1064a8b6b855489d38c3e59f6a.tar.gz yuzu-b096ec68cdbf6f1064a8b6b855489d38c3e59f6a.tar.bz2 yuzu-b096ec68cdbf6f1064a8b6b855489d38c3e59f6a.tar.lz yuzu-b096ec68cdbf6f1064a8b6b855489d38c3e59f6a.tar.xz yuzu-b096ec68cdbf6f1064a8b6b855489d38c3e59f6a.tar.zst yuzu-b096ec68cdbf6f1064a8b6b855489d38c3e59f6a.zip |
Diffstat (limited to 'src/core/loader/nro.h')
-rw-r--r-- | src/core/loader/nro.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/loader/nro.h b/src/core/loader/nro.h index a82b66221..20bbaeb0e 100644 --- a/src/core/loader/nro.h +++ b/src/core/loader/nro.h @@ -27,15 +27,17 @@ namespace Loader { /// Loads an NRO file class AppLoader_NRO final : public AppLoader { public: - explicit AppLoader_NRO(FileSys::VirtualFile file); + explicit AppLoader_NRO(FileSys::VirtualFile file_); ~AppLoader_NRO() override; /** - * 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 an NRO file. + * + * @param nro_file The file to identify. + * + * @return FileType::NRO, or FileType::Error if the file is not an NRO file. */ - static FileType IdentifyType(const FileSys::VirtualFile& file); + static FileType IdentifyType(const FileSys::VirtualFile& nro_file); FileType GetFileType() const override { return IdentifyType(file); @@ -51,7 +53,7 @@ public: bool IsRomFSUpdatable() const override; private: - bool LoadNro(Kernel::Process& process, const FileSys::VfsFile& file); + bool LoadNro(Kernel::Process& process, const FileSys::VfsFile& nro_file); std::vector<u8> icon_data; std::unique_ptr<FileSys::NACP> nacp; |