mirror of
https://github.com/wiiu-env/wut.git
synced 2025-02-02 03:42:30 +01:00
Fix elf2rpl CRC section endianness
This commit is contained in:
parent
77dee438d8
commit
74de2a77dc
@ -918,7 +918,7 @@ write(ElfFile &file, const std::string &filename)
|
|||||||
crc = crc32(crc, reinterpret_cast<Bytef *>(section->data.data()), section->data.size());
|
crc = crc32(crc, reinterpret_cast<Bytef *>(section->data.data()), section->data.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
sectionCRCs.push_back(crc);
|
sectionCRCs.push_back(byte_swap(crc));
|
||||||
}
|
}
|
||||||
|
|
||||||
char *crcData = reinterpret_cast<char *>(sectionCRCs.data());
|
char *crcData = reinterpret_cast<char *>(sectionCRCs.data());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user