HearthSim / UnityPack

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

Check for `b"Unity"` prefix before reading file. #61

Closed Raijinili closed 6 years ago

Raijinili commented 6 years ago

Short-circuit out if the header is not what's expected.

Replace assertion with explicit exception.

(Should it include the file path in the error message? Should it include the first 16 bytes?)

jleclanche commented 6 years ago

Thanks!