mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 10:18:02 -05:00
core: Refactor MakeMagic usage and remove dead code.
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include "common/common_funcs.h"
|
||||
#include "common/common_types.h"
|
||||
#include "common/file_util.h"
|
||||
#include "common/logging/log.h"
|
||||
@ -376,7 +377,7 @@ FileType AppLoader_ELF::IdentifyType(FileUtil::IOFile& file) {
|
||||
if (1 != file.ReadArray<u16>(&machine, 1))
|
||||
return FileType::Error;
|
||||
|
||||
if (MakeMagic('\x7f', 'E', 'L', 'F') == magic && ELF_MACHINE_ARM == machine)
|
||||
if (Common::MakeMagic('\x7f', 'E', 'L', 'F') == magic && ELF_MACHINE_ARM == machine)
|
||||
return FileType::ELF;
|
||||
|
||||
return FileType::Error;
|
||||
|
Reference in New Issue
Block a user