summaryrefslogtreecommitdiff
path: root/src/core/loader/3dsx.h
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2016-05-17 23:30:44 +0100
committerGravatar Emmanuel Gil Peyrot2016-05-21 17:09:59 +0100
commit9a35d1fb4ac1c1e37d02bb3826c2c0bfd2a1554f (patch)
tree6fe175c9e225d025217c48e3926209ed14b14183 /src/core/loader/3dsx.h
parentLoader, Frontends: Refactor loader creation and game loading (diff)
downloadyuzu-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/3dsx.h')
-rw-r--r--src/core/loader/3dsx.h8
1 files changed, 8 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 */