diff options
| author | 2018-01-20 14:55:54 -0500 | |
|---|---|---|
| committer | 2018-01-20 14:59:44 -0500 | |
| commit | 023aef053c96c92c9ea15d067f7d2cb7150585d6 (patch) | |
| tree | 6b8a4c0dc9aae92ff172a2715969b8551e9d14b1 /src/core/loader/elf.h | |
| parent | nso: Remove code specific to directory loading. (diff) | |
| download | yuzu-023aef053c96c92c9ea15d067f7d2cb7150585d6.tar.gz yuzu-023aef053c96c92c9ea15d067f7d2cb7150585d6.tar.xz yuzu-023aef053c96c92c9ea15d067f7d2cb7150585d6.zip | |
loader: Refactor to also pass filepath into IdentifyType.
Diffstat (limited to 'src/core/loader/elf.h')
| -rw-r--r-- | src/core/loader/elf.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/loader/elf.h b/src/core/loader/elf.h index 113da5917..a5158338f 100644 --- a/src/core/loader/elf.h +++ b/src/core/loader/elf.h | |||
| @@ -22,12 +22,13 @@ public: | |||
| 22 | /** | 22 | /** |
| 23 | * Returns the type of the file | 23 | * Returns the type of the file |
| 24 | * @param file FileUtil::IOFile open file | 24 | * @param file FileUtil::IOFile open file |
| 25 | * @param filepath Path of the file that we are opening. | ||
| 25 | * @return FileType found, or FileType::Error if this loader doesn't know it | 26 | * @return FileType found, or FileType::Error if this loader doesn't know it |
| 26 | */ | 27 | */ |
| 27 | static FileType IdentifyType(FileUtil::IOFile& file); | 28 | static FileType IdentifyType(FileUtil::IOFile& file, const std::string& filepath); |
| 28 | 29 | ||
| 29 | FileType GetFileType() override { | 30 | FileType GetFileType() override { |
| 30 | return IdentifyType(file); | 31 | return IdentifyType(file, filename); |
| 31 | } | 32 | } |
| 32 | 33 | ||
| 33 | ResultStatus Load(Kernel::SharedPtr<Kernel::Process>& process) override; | 34 | ResultStatus Load(Kernel::SharedPtr<Kernel::Process>& process) override; |