summaryrefslogtreecommitdiff
path: root/ZAPD/ZRom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ZAPD/ZRom.cpp')
-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)