diff options
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 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | 1 | // Copyright 2018 yuzu emulator team |
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| @@ -20,9 +20,6 @@ struct AddressMapping; | |||
| 20 | class Process; | 20 | class Process; |
| 21 | } // namespace Kernel | 21 | } // namespace Kernel |
| 22 | 22 | ||
| 23 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 24 | // Loader namespace | ||
| 25 | |||
| 26 | namespace Loader { | 23 | namespace Loader { |
| 27 | 24 | ||
| 28 | /// File types supported by CTR | 25 | /// File types supported by CTR |
| @@ -32,14 +29,16 @@ enum class FileType { | |||
| 32 | ELF, | 29 | ELF, |
| 33 | NSO, | 30 | NSO, |
| 34 | NRO, | 31 | NRO, |
| 32 | DeconstructedRomDirectory, | ||
| 35 | }; | 33 | }; |
| 36 | 34 | ||
| 37 | /** | 35 | /** |
| 38 | * Identifies the type of a bootable file based on the magic value in its header. | 36 | * Identifies the type of a bootable file based on the magic value in its header. |
| 39 | * @param file open file | 37 | * @param file open file |
| 38 | * @param filepath Path of the file that we are opening. | ||
| 40 | * @return FileType of file | 39 | * @return FileType of file |
| 41 | */ | 40 | */ |
| 42 | FileType IdentifyFile(FileUtil::IOFile& file); | 41 | FileType IdentifyFile(FileUtil::IOFile& file, const std::string& filepath); |
| 43 | 42 | ||
| 44 | /** | 43 | /** |
| 45 | * Identifies the type of a bootable file based on the magic value in its header. | 44 | * Identifies the type of a bootable file based on the magic value in its header. |