loader: Refactor to also pass filepath into IdentifyType.

This commit is contained in:
bunnei 2018-01-20 14:55:54 -05:00
parent 2dafd0d287
commit 023aef053c
8 changed files with 19 additions and 19 deletions

View file

@ -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.