Skip to content

Commit

Permalink
Fixed crc calc
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Jan 3, 2025
1 parent a275fb2 commit b030fb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/factories/naudio/v1/AudioTableFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b030fb0

Please sign in to comment.