summaryrefslogtreecommitdiff
path: root/src/core/loader/loader.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-01-20 16:26:20 -0500
committerGravatar GitHub2018-01-20 16:26:20 -0500
commitff883cc56382425d4c4f572ff659ec7df6fc2cec (patch)
tree3b7e44f33dac0384d412fed61de3c5ad40db137d /src/core/loader/loader.h
parentPort citra #3352 to yuzu (#103) (diff)
parentloader: Clean up ctors and includes. (diff)
downloadyuzu-ff883cc56382425d4c4f572ff659ec7df6fc2cec.tar.gz
yuzu-ff883cc56382425d4c4f572ff659ec7df6fc2cec.tar.xz
yuzu-ff883cc56382425d4c4f572ff659ec7df6fc2cec.zip
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.h9
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;
20class Process; 20class Process;
21} // namespace Kernel 21} // namespace Kernel
22 22
23////////////////////////////////////////////////////////////////////////////////////////////////////
24// Loader namespace
25
26namespace Loader { 23namespace 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 */
42FileType IdentifyFile(FileUtil::IOFile& file); 41FileType 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.