summaryrefslogtreecommitdiff
path: root/src/core/loader/loader.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-01-20 14:55:54 -0500
committerGravatar bunnei2018-01-20 14:59:44 -0500
commit023aef053c96c92c9ea15d067f7d2cb7150585d6 (patch)
tree6b8a4c0dc9aae92ff172a2715969b8551e9d14b1 /src/core/loader/loader.h
parentnso: Remove code specific to directory loading. (diff)
downloadyuzu-023aef053c96c92c9ea15d067f7d2cb7150585d6.tar.gz
yuzu-023aef053c96c92c9ea15d067f7d2cb7150585d6.tar.xz
yuzu-023aef053c96c92c9ea15d067f7d2cb7150585d6.zip
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 dd6bb4e64..f7828b7ad 100644
--- a/src/core/loader/loader.h
+++ b/src/core/loader/loader.h
@@ -37,9 +37,10 @@ enum class FileType {
37/** 37/**
38 * Identifies the type of a bootable file based on the magic value in its header. 38 * Identifies the type of a bootable file based on the magic value in its header.
39 * @param file open file 39 * @param file open file
40 * @param filepath Path of the file that we are opening.
40 * @return FileType of file 41 * @return FileType of file
41 */ 42 */
42FileType IdentifyFile(FileUtil::IOFile& file); 43FileType IdentifyFile(FileUtil::IOFile& file, const std::string& filepath);
43 44
44/** 45/**
45 * Identifies the type of a bootable file based on the magic value in its header. 46 * Identifies the type of a bootable file based on the magic value in its header.