summaryrefslogtreecommitdiff
path: root/ZAPDTR
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
commita129371923abc81c6a38828f751fe5b96c8825c3 (patch)
tree2eb37735623fe95ee3a566828232bb466d9d0606 /ZAPDTR
parent644ab7f498fd789f8a52684892f277269f07268a (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.cpp2
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)