diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-20 16:26:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-20 16:26:20 -0500 |
commit | ff883cc56382425d4c4f572ff659ec7df6fc2cec (patch) | |
tree | 3b7e44f33dac0384d412fed61de3c5ad40db137d /src/core/loader/loader.h | |
parent | c8a094e164b77fdae6b4b8bff7f94b703c24c161 (diff) | |
parent | 386df282a3ad340ddaf7ab054102858406b27198 (diff) |
Merge pull request #119 from bunnei/desconstucted-loader
Separate NSO loading from DesconstuctedRomLoader
Diffstat (limited to 'src/core/loader/loader.h')
-rw-r--r-- | src/core/loader/loader.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index dd6bb4e64..dd44ee9a6 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h @@ -1,4 +1,4 @@ -// Copyright 2014 Citra Emulator Project +// Copyright 2018 yuzu emulator team // Licensed under GPLv2 or any later version // Refer to the license.txt file included. @@ -20,9 +20,6 @@ struct AddressMapping; class Process; } // namespace Kernel -//////////////////////////////////////////////////////////////////////////////////////////////////// -// Loader namespace - namespace Loader { /// File types supported by CTR @@ -32,14 +29,16 @@ enum class FileType { ELF, NSO, NRO, + DeconstructedRomDirectory, }; /** * 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. |