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 (part 2) #1828

Merged
merged 6 commits into from
Jul 13, 2024
Merged

Restore 2.3.1 version check (part 2) #1828

merged 6 commits into from
Jul 13, 2024

Conversation

colinator27
Copy link
Member

Description

See #1696; this just moves the check to the object count unserialization stage, preventing the warning that can occur otherwise. Closes #1414.

Notes

I think it's OK that this can potentially yield false positives/negatives, as the original PR says, because newer GM versions bypass this check altogether.

Copy link

github-actions bot commented Jul 10, 2024

UndertaleModLib/UndertaleChunks.cs Outdated Show resolved Hide resolved
UndertaleModLib/UndertaleChunks.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleAnimationCurve.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleAnimationCurve.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleAnimationCurve.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleAnimationCurve.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleAnimationCurve.cs Outdated Show resolved Hide resolved
else
{
if (reader.ReadUInt32() == 0) // At all points (besides the first one)
reader.undertaleData.SetGMS2Version(2, 3, 1); // if BezierX0 equals to 0 (the above check)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
reader.undertaleData.SetGMS2Version(2, 3, 1); // if BezierX0 equals to 0 (the above check)
reader.undertaleData.SetGMS2Version(2, 3, 1); // If BezierX0 equals to 0 (the above check)

@Miepee
Copy link
Contributor

Miepee commented Jul 12, 2024

I thought there were more issues floating around for this one?

@Miepee Miepee merged commit 9b2eca6 into master Jul 13, 2024
5 checks passed
@colinator27 colinator27 deleted the version-check-fix branch July 14, 2024 13:20
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
3 participants