Skip to content

Conversation

mmatyas
Copy link

@mmatyas mmatyas commented Sep 3, 2024

When reading the types from a version 21+ asset, UnityPy correctly reads the type tree, then correctly reads the list of dependencies as a regular "count + elements" array.

However, when writing the type tree, UnityPy writes a fixed 0x0 in place of the dependency array length, then writes the array without a count field (with write_length being False by default). This results a corrupted file when a type actually has dependencies.

@K0lb3
Copy link
Owner

K0lb3 commented Sep 4, 2024

Thanks for noticing and fixing the problem.

@K0lb3 K0lb3 merged commit 4bbd9aa into K0lb3:master Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants