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

Restore 2.3.1 version check #1696

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Jacky720
Copy link
Contributor

Description

This re-adds a variant of the UndertaleAnimationCurve version check into UndertaleAnimationCurve.cs itself. (It had previously been moved to UndertaleChunks.cs to match most other chunk-parsing-based version checks.) This is because at least one game-- TS!Underswap, Demo v1.0, makes use of embedded animation curves in its sequences, which are parsed prior to the ACRV check in UndertaleChunks. Closes #1414.

Caveats

The check is imperfect, but it loads the demo in question correctly. Marking this as draft as it does cause a mismatch in object count unserialization and an associated warning.

Notes

There's definitely a possibility for the check yielding false positives or negatives, but we had it for a long time back in the day and evidently got no complaints or it would have changed more than just being moved as an optimization measure.
Also, I am amenable to re-removing the check from UndertaleChunks, as this may make that check redundant.

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.

TS!Underswap cannot be modified on v0.5.1
1 participant