HearthSim / UnityPack

Python deserialization library for Unity3D Asset format
https://hearthsim.info/
MIT License
720 stars 153 forks source link

Fix UnityWeb/UnityRaw and add CRC computations #95

Closed nanoNago closed 4 years ago

nanoNago commented 4 years ago

Hi!

This should improve the bundle header decomposition. It was overreading into the asset area before, this should be a little more accurate, and the Asset initialization should now be greatly simplified. Unfortunately, I don't have a large corpus of files to test with, so I can't claim that it doesn't introduce any regressions.

This also adds CRC computations to the bundle, which can be useful for verifying that streamed bundles have downloaded correctly. Games like Pokemon TCG use both Headered and Headerless CRCs to verify bundles.

nanoNago commented 4 years ago

The branch I sent this PR from has moved forward since, so I need to close this issue (oops), I will resend the PRs.