summaryrefslogtreecommitdiff
path: root/src/core/loader/elf.h
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2015-01-06 23:10:13 +0000
committerGravatar Emmanuel Gil Peyrot2015-01-15 22:23:08 +0100
commit82ec17db7df53ed1c376d1cdaa9a6587719a546d (patch)
tree3c2236849146037fbba2fb75ea8a50f53b847a17 /src/core/loader/elf.h
parentLoader: Don’t assume the file hasn’t been read before. (diff)
downloadyuzu-82ec17db7df53ed1c376d1cdaa9a6587719a546d.tar.gz
yuzu-82ec17db7df53ed1c376d1cdaa9a6587719a546d.tar.xz
yuzu-82ec17db7df53ed1c376d1cdaa9a6587719a546d.zip
Loader: Guess filetype from the magic, or fallback to the extension.
Diffstat (limited to 'src/core/loader/elf.h')
-rw-r--r--src/core/loader/elf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/loader/elf.h b/src/core/loader/elf.h
index 1c476c86b..b6e6651f5 100644
--- a/src/core/loader/elf.h
+++ b/src/core/loader/elf.h
@@ -18,6 +18,13 @@ public:
18 AppLoader_ELF(std::unique_ptr<FileUtil::IOFile>&& file) : AppLoader(std::move(file)) { } 18 AppLoader_ELF(std::unique_ptr<FileUtil::IOFile>&& file) : AppLoader(std::move(file)) { }
19 19
20 /** 20 /**
21 * Returns the type of the file
22 * @param file FileUtil::IOFile open file
23 * @return FileType found, or FileType::Error if this loader doesn't know it
24 */
25 static FileType IdentifyType(FileUtil::IOFile& file);
26
27 /**
21 * Load the bootable file 28 * Load the bootable file
22 * @return ResultStatus result of function 29 * @return ResultStatus result of function
23 */ 30 */