diff options
| author | Adam Bird <Archez@users.noreply.github.com> | 2023-09-10 19:20:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-10 12:20:58 -0500 |
| commit | a129371923abc81c6a38828f751fe5b96c8825c3 (patch) | |
| tree | 2eb37735623fe95ee3a566828232bb466d9d0606 /ZAPDTR | |
| parent | 644ab7f498fd789f8a52684892f277269f07268a (diff) | |
Add extraction support for ByteSwapped and LittleEndian formats (#3042)
* add extraction support for byteswapped and littleendian formats
* update linux/mac scripts to handle v64 and n64
Diffstat (limited to 'ZAPDTR')
| -rw-r--r-- | ZAPDTR/ZAPD/ZRom.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ZAPDTR/ZAPD/ZRom.cpp b/ZAPDTR/ZAPD/ZRom.cpp index abce2bf0a..e9b583b26 100644 --- a/ZAPDTR/ZAPD/ZRom.cpp +++ b/ZAPDTR/ZAPD/ZRom.cpp @@ -97,6 +97,8 @@ ZRom::ZRom(std::string romPath) RomVersion version; romData = DiskFile::ReadAllBytes(romPath); + BitConverter::RomToBigEndian(romData.data(), romData.size()); + version.crc = BitConverter::ToInt32BE(romData, 0x10); switch (version.crc) |
