Skip to content

Improve Error Handling with Serialized File Detection#58

Open
SkowronskiAndrew wants to merge 5 commits intoimprove-error-handlingfrom
serialized-file-detect
Open

Improve Error Handling with Serialized File Detection#58
SkowronskiAndrew wants to merge 5 commits intoimprove-error-handlingfrom
serialized-file-detect

Conversation

@SkowronskiAndrew
Copy link
Collaborator

Add detection for serialized files by looking inside the file and checking expected content.

This allows "analyze" to more accurately ignore unsupported files that can be found in the scanning location.
Previously we tried to open it using the actual parsing code in UnityFileSystem which could throw unexpected or misleading errors.

Now only if the header check passes will we attempt to load it.

Fix includes test coverage, including files from an older version of Unity.

Also cleanup the previously existing check for Unity Archive files

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.

1 participant

Comments