diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-01-06 23:10:13 +0000 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-01-15 22:23:08 +0100 |
commit | 82ec17db7df53ed1c376d1cdaa9a6587719a546d (patch) | |
tree | 3c2236849146037fbba2fb75ea8a50f53b847a17 /src/core/loader/elf.h | |
parent | 04622a859cc748745cbbeb0b332f930085438077 (diff) |
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/loader/elf.h b/src/core/loader/elf.h index 1c476c86b9..b6e6651f58 100644 --- a/src/core/loader/elf.h +++ b/src/core/loader/elf.h @@ -18,6 +18,13 @@ public: AppLoader_ELF(std::unique_ptr<FileUtil::IOFile>&& file) : AppLoader(std::move(file)) { } /** + * Returns the type of the file + * @param file FileUtil::IOFile open file + * @return FileType found, or FileType::Error if this loader doesn't know it + */ + static FileType IdentifyType(FileUtil::IOFile& file); + + /** * Load the bootable file * @return ResultStatus result of function */ |