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

Get rid of the Thread.Sleep(1) workaround in InjectorHelpers #56

Merged
merged 2 commits into from
Nov 13, 2022

Conversation

js6pak
Copy link
Member

@js6pak js6pak commented Nov 11, 2022

Assigns the trampoline before applying the detour so there are never any nulls.
Unfortunately this is a breaking change because we need to add the GenerateTrampoline to IDetour, but because afaik BepInEx is the only consumer of that api we could just overlook it?

Copy link
Member

@Kasuromi Kasuromi left a comment

Choose a reason for hiding this comment

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

Looks good.

I agree on overlooking this breaking change when pushing the next release (as we've done before), but I'd like to hear what @ghorsington thinks before we do so.

@ghorsington ghorsington merged commit e086c36 into BepInEx:master Nov 13, 2022
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.

3 participants