Fixed crc calc

This commit is contained in:
KiritoDv
2025-01-03 14:14:57 -06:00
committed by Lywx
parent 8b38df1e7d
commit 9b0c5c7420
@@ -136,7 +136,6 @@ std::optional<std::shared_ptr<IParsedData>> AudioTableFactory::parse(std::vector
uint64_t crc = 0;
auto entry = AudioTableEntry { addr, size, medium, policy, sd1, sd2, sd3, crc };
entries.push_back(entry);
AudioContext::tables[type][addr] = entry;
switch (type) {
@@ -170,6 +169,9 @@ std::optional<std::shared_ptr<IParsedData>> AudioTableFactory::parse(std::vector
}
}
}
AudioContext::tables[type][addr].crc = crc;
entries.push_back(entry);
}
auto table = std::make_shared<AudioTableData>(bmedium, offset, type, entries);