summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/loader/3dsx.h8
-rw-r--r--src/core/loader/elf.h8
-rw-r--r--src/core/loader/loader.h6
-rw-r--r--src/core/loader/ncch.h8
4 files changed, 30 insertions, 0 deletions
diff --git a/src/core/loader/3dsx.h b/src/core/loader/3dsx.h
index 3ee686703..90b20c61c 100644
--- a/src/core/loader/3dsx.h
+++ b/src/core/loader/3dsx.h
@@ -28,6 +28,14 @@ public:
28 static FileType IdentifyType(FileUtil::IOFile& file); 28 static FileType IdentifyType(FileUtil::IOFile& file);
29 29
30 /** 30 /**
31 * Returns the type of this file
32 * @return FileType corresponding to the loaded file
33 */
34 FileType GetFileType() override {
35 return IdentifyType(file);
36 }
37
38 /**
31 * Load the bootable file 39 * Load the bootable file
32 * @return ResultStatus result of function 40 * @return ResultStatus result of function
33 */ 41 */
diff --git a/src/core/loader/elf.h b/src/core/loader/elf.h
index c6a5ebe99..cb3724f9d 100644
--- a/src/core/loader/elf.h
+++ b/src/core/loader/elf.h
@@ -28,6 +28,14 @@ public:
28 static FileType IdentifyType(FileUtil::IOFile& file); 28 static FileType IdentifyType(FileUtil::IOFile& file);
29 29
30 /** 30 /**
31 * Returns the type of this file
32 * @return FileType corresponding to the loaded file
33 */
34 FileType GetFileType() override {
35 return IdentifyType(file);
36 }
37
38 /**
31 * Load the bootable file 39 * Load the bootable file
32 * @return ResultStatus result of function 40 * @return ResultStatus result of function
33 */ 41 */
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h
index 4a4bd7c77..08bab84e5 100644
--- a/src/core/loader/loader.h
+++ b/src/core/loader/loader.h
@@ -132,6 +132,12 @@ public:
132 virtual ~AppLoader() { } 132 virtual ~AppLoader() { }
133 133
134 /** 134 /**
135 * Returns the type of this file
136 * @return FileType corresponding to the loaded file
137 */
138 virtual FileType GetFileType() = 0;
139
140 /**
135 * Load the application 141 * Load the application
136 * @return ResultStatus result of function 142 * @return ResultStatus result of function
137 */ 143 */
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 */