Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix off-by-one error for 2019.4 bundles #101

Merged
merged 2 commits into from Aug 13, 2020

Conversation

stevenvergenz
Copy link
Contributor

Each type tree in Unity 2019.4 (format 21) has an extra 4 bytes at the end compared to Unity 2019.1 (format 19), whose purpose is unknown. This PR consumes these 4 bytes so they don't cascade into bad offsets for the rest of the parse.

@multimeric
Copy link

Ah, great fix. It solved the bug I was encountering. Now if only it could be merged...

@beheh
Copy link
Member

beheh commented Aug 11, 2020

Hi there @stevenvergenz, thanks for your PR! All contributions to HearthSim require a signed CLA. I've sent you an invite to the repository, please follow the instructions there. If you've already signed the CLA, please let us know.

Once that's done and the CLA has been merged, we'll try to get this merged here as soon as possible.

@stevenvergenz
Copy link
Contributor Author

@beheh
Copy link
Member

beheh commented Aug 13, 2020

Great, thank you!

@beheh beheh merged commit f8cdc25 into HearthSim:master Aug 13, 2020
drojf added a commit to drojf/UnityPack that referenced this pull request Jan 25, 2024
drojf added a commit to 07th-mod/ui-editing-scripts that referenced this pull request Jan 25, 2024
 - I added a 'legacy mode' flag to revert HearthSim/UnityPack#101 as it caused problems on Rei
 - I tested the new setup (using custom unitypack) vs old one, and the output .asset files were bit-for-bit identical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants