diff options
| author | 2016-05-17 23:30:44 +0100 | |
|---|---|---|
| committer | 2016-05-21 17:09:59 +0100 | |
| commit | 9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f (patch) | |
| tree | 6fe175c9e225d025217c48e3926209ed14b14183 /src/core/loader/ncch.h | |
| parent | Loader, Frontends: Refactor loader creation and game loading (diff) | |
| download | yuzu-9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f.tar.gz yuzu-9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f.tar.xz yuzu-9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f.zip | |
Loader: Add a GetFileType method to get the type of a loaded file
Diffstat (limited to 'src/core/loader/ncch.h')
| -rw-r--r-- | src/core/loader/ncch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h index fd852c3de..75609ee57 100644 --- a/src/core/loader/ncch.h +++ b/src/core/loader/ncch.h | |||
| @@ -174,6 +174,14 @@ public: | |||
| 174 | static FileType IdentifyType(FileUtil::IOFile& file); | 174 | static FileType IdentifyType(FileUtil::IOFile& file); |
| 175 | 175 | ||
| 176 | /** | 176 | /** |
| 177 | * Returns the type of this file | ||
| 178 | * @return FileType corresponding to the loaded file | ||
| 179 | */ | ||
| 180 | FileType GetFileType() override { | ||
| 181 | return IdentifyType(file); | ||
| 182 | } | ||
| 183 | |||
| 184 | /** | ||
| 177 | * Load the application | 185 | * Load the application |
| 178 | * @return ResultStatus result of function | 186 | * @return ResultStatus result of function |
| 179 | */ | 187 | */ |