From 90d24c3a3c74f3afa4e28ae30214d7f34191ce40 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 19 Oct 2023 13:01:20 +0300 Subject: [PATCH] e_type ET_SCE_DYNAMIC seems to be valid as well --- src/Core/PS4/Loader/Elf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/PS4/Loader/Elf.cpp b/src/Core/PS4/Loader/Elf.cpp index 04e2c654..d9112707 100644 --- a/src/Core/PS4/Loader/Elf.cpp +++ b/src/Core/PS4/Loader/Elf.cpp @@ -206,8 +206,8 @@ bool Elf::isElfFile() const { return false; } - if (m_elf_header->e_type != ET_SCE_DYNEXEC && m_elf_header->e_type != ET_SCE_DYNAMIC) { - printf("ERROR:e_type expected 0xFE10 OR 0xFE18 is (%04x)\n", m_elf_header->e_type); + if (m_elf_header->e_type != ET_SCE_DYNEXEC&& m_elf_header->e_type != ET_SCE_DYNAMIC&& m_elf_header->e_type != ET_SCE_EXEC) { + printf("ERROR:e_type expected 0xFE10 OR 0xFE18 OR 0xfe00 is (%04x)\n", m_elf_header->e_type); return false; }