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 | 145758a1ee927ea6467e321ecaac48ead838bacc (patch) | |
| tree | 69d62dd5ea530a249821c7d9ba223fd72f63a156 | |
| parent | 618b64ba6757269c0f96060d2fffe20b2aa7de98 (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
| -rw-r--r-- | ZAPD/ZRom.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ZAPD/ZRom.cpp b/ZAPD/ZRom.cpp index abce2bf..e9b583b 100644 --- a/ZAPD/ZRom.cpp +++ b/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) |
