summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Bird <Archez@users.noreply.github.com>2023-09-10 19:20:58 +0200
committerGitHub <noreply@github.com>2023-09-10 12:20:58 -0500
commit145758a1ee927ea6467e321ecaac48ead838bacc (patch)
tree69d62dd5ea530a249821c7d9ba223fd72f63a156
parent618b64ba6757269c0f96060d2fffe20b2aa7de98 (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.cpp2
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)