diff options
| author | 2017-10-15 00:11:38 -0400 | |
|---|---|---|
| committer | 2017-10-15 00:11:38 -0400 | |
| commit | 746c2a3ae769c6172700e4f9e10ba01fa0df4ccb (patch) | |
| tree | fc17369ecf7eae3ba8567f3098223a40ab860ff4 /src/core/loader/elf.cpp | |
| parent | hle: Add service stubs for apm and appletOE. (diff) | |
| download | yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.tar.gz yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.tar.xz yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.zip | |
core: Refactor MakeMagic usage and remove dead code.
Diffstat (limited to 'src/core/loader/elf.cpp')
| -rw-r--r-- | src/core/loader/elf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp index 9969a8c39..9ba913dbe 100644 --- a/src/core/loader/elf.cpp +++ b/src/core/loader/elf.cpp | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include <cstring> | 5 | #include <cstring> |
| 6 | #include <memory> | 6 | #include <memory> |
| 7 | #include <string> | 7 | #include <string> |
| 8 | #include "common/common_funcs.h" | ||
| 8 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 9 | #include "common/file_util.h" | 10 | #include "common/file_util.h" |
| 10 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| @@ -376,7 +377,7 @@ FileType AppLoader_ELF::IdentifyType(FileUtil::IOFile& file) { | |||
| 376 | if (1 != file.ReadArray<u16>(&machine, 1)) | 377 | if (1 != file.ReadArray<u16>(&machine, 1)) |
| 377 | return FileType::Error; | 378 | return FileType::Error; |
| 378 | 379 | ||
| 379 | if (MakeMagic('\x7f', 'E', 'L', 'F') == magic && ELF_MACHINE_ARM == machine) | 380 | if (Common::MakeMagic('\x7f', 'E', 'L', 'F') == magic && ELF_MACHINE_ARM == machine) |
| 380 | return FileType::ELF; | 381 | return FileType::ELF; |
| 381 | 382 | ||
| 382 | return FileType::Error; | 383 | return FileType::Error; |