Fix CheckFlags signature mismatch after game update#14
Open
He40026 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述 :
自从游戏更新 1.21.1 (Race Day Patch) 后,模组在使用时会报错,无法正确预览和创建道路。报错内容如下:
原因 :
游戏
Assembly-CSharp.dll中,NetInfo.Segment.CheckFlags的函数发生了改变。官方新增了一个NetSegment.Flags2参数:Old API:
CheckFlags(Flags, out bool)New API:
CheckFlags(Flags, Flags2, out bool)修复 :
更新了代码中对
CheckFlags函数的调用,补齐了缺失的Flags2参数以适配最新版游戏 API。本地测试已通过,道路预览与创建功能恢复正常。