aboutsummaryrefslogtreecommitdiff
path: root/src/core/loader/loader.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-20 14:55:54 -0500
committerbunnei <bunneidev@gmail.com>2018-01-20 14:59:44 -0500
commitf2d6ec14043a7b552faaa14877bb403e6af1d8ce (patch)
tree6b8a4c0dc9aae92ff172a2715969b8551e9d14b1 /src/core/loader/loader.h
parent965c2bddb2f4562b3744cc0ff4f61150282c91f9 (diff)
loader: Refactor to also pass filepath into IdentifyType.
Diffstat (limited to 'src/core/loader/loader.h')
-rw-r--r--src/core/loader/loader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h
index dd6bb4e64e..f7828b7ad5 100644
--- a/src/core/loader/loader.h
+++ b/src/core/loader/loader.h
@@ -37,9 +37,10 @@ enum class FileType {
/**
* Identifies the type of a bootable file based on the magic value in its header.
* @param file open file
+ * @param filepath Path of the file that we are opening.
* @return FileType of file
*/
-FileType IdentifyFile(FileUtil::IOFile& file);
+FileType IdentifyFile(FileUtil::IOFile& file, const std::string& filepath);
/**
* Identifies the type of a bootable file based on the magic value in its header.