diff options
| author | 2018-01-20 16:26:20 -0500 | |
|---|---|---|
| committer | 2018-01-20 16:26:20 -0500 | |
| commit | ff883cc56382425d4c4f572ff659ec7df6fc2cec (patch) | |
| tree | 3b7e44f33dac0384d412fed61de3c5ad40db137d /src/core/loader/elf.cpp | |
| parent | Port citra #3352 to yuzu (#103) (diff) | |
| parent | loader: Clean up ctors and includes. (diff) | |
| download | yuzu-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/elf.cpp')
| -rw-r--r-- | src/core/loader/elf.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp index 9ba913dbe..2f87346d0 100644 --- a/src/core/loader/elf.cpp +++ b/src/core/loader/elf.cpp | |||
| @@ -364,7 +364,10 @@ SectionID ElfReader::GetSectionByName(const char* name, int firstSection) const | |||
| 364 | 364 | ||
| 365 | namespace Loader { | 365 | namespace Loader { |
| 366 | 366 | ||
| 367 | FileType AppLoader_ELF::IdentifyType(FileUtil::IOFile& file) { | 367 | AppLoader_ELF::AppLoader_ELF(FileUtil::IOFile&& file, std::string filename) |
| 368 | : AppLoader(std::move(file)), filename(std::move(filename)) {} | ||
| 369 | |||
| 370 | FileType AppLoader_ELF::IdentifyType(FileUtil::IOFile& file, const std::string&) { | ||
| 368 | static constexpr u16 ELF_MACHINE_ARM{0x28}; | 371 | static constexpr u16 ELF_MACHINE_ARM{0x28}; |
| 369 | 372 | ||
| 370 | u32 magic = 0; | 373 | u32 magic = 0; |