From b030fb03e212bd49b12a3a5004f51ff3817949d5 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Fri, 3 Jan 2025 02:32:11 -0600 Subject: [PATCH] Fixed crc calc --- src/factories/naudio/v1/AudioTableFactory.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/factories/naudio/v1/AudioTableFactory.cpp b/src/factories/naudio/v1/AudioTableFactory.cpp index 5f2cebd..6c5bbe5 100644 --- a/src/factories/naudio/v1/AudioTableFactory.cpp +++ b/src/factories/naudio/v1/AudioTableFactory.cpp @@ -136,7 +136,6 @@ std::optional> 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> AudioTableFactory::parse(std::vector } } } + + AudioContext::tables[type][addr].crc = crc; + entries.push_back(entry); } auto table = std::make_shared(bmedium, offset, type, entries);