mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-26 08:44:47 +02:00
Merge pull request #3007 from Ced2911/module_endian
Fix crypted elf crashes on big endian
This commit is contained in:
@@ -446,7 +446,7 @@ Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, std::string *erro
|
||||
u32_le *magicPtr = (u32_le *) ptr;
|
||||
if (*magicPtr == 0x4543537e) { // "~SCE"
|
||||
INFO_LOG(HLE, "~SCE module, skipping header");
|
||||
ptr += *(u32*)(ptr + 4);
|
||||
ptr += *(u32_le*)(ptr + 4);
|
||||
magicPtr = (u32_le *)ptr;
|
||||
}
|
||||
*magic = *magicPtr;
|
||||
|
||||
Reference in New Issue
Block a user