aboutsummaryrefslogtreecommitdiff
path: root/src/core/loader/ncch.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-05-17 23:30:44 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-05-21 17:09:59 +0100
commit85a4eea460afbcff36f675cd488f21b8902abc02 (patch)
tree6fe175c9e225d025217c48e3926209ed14b14183 /src/core/loader/ncch.h
parentb0095b9584c17cf940477b9c0366917c3205894e (diff)
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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h
index fd852c3de2..75609ee576 100644
--- a/src/core/loader/ncch.h
+++ b/src/core/loader/ncch.h
@@ -174,6 +174,14 @@ public:
static FileType IdentifyType(FileUtil::IOFile& file);
/**
+ * Returns the type of this file
+ * @return FileType corresponding to the loaded file
+ */
+ FileType GetFileType() override {
+ return IdentifyType(file);
+ }
+
+ /**
* Load the application
* @return ResultStatus result of function
*/