summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-05-18 00:30:44 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-05-21 18:09:59 +0200
commit9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f (patch)
tree6fe175c9e225d025217c48e3926209ed14b14183 /src
parentLoader, Frontends: Refactor loader creation and game loading (diff)
downloadyuzu-9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f.tar
yuzu-9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f.tar.gz
yuzu-9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f.tar.bz2
yuzu-9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f.tar.lz
yuzu-9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f.tar.xz
yuzu-9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f.tar.zst
yuzu-9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f.zip
Diffstat (limited to 'src')
-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:
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 bootable file
* @return ResultStatus result of function
*/
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:
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 bootable file
* @return ResultStatus result of function
*/
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:
virtual ~AppLoader() { }
/**
+ * Returns the type of this file
+ * @return FileType corresponding to the loaded file
+ */
+ virtual FileType GetFileType() = 0;
+
+ /**
* Load the application
* @return ResultStatus result of function
*/
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:
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
*/