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

Static UnpatchAll and UnpatchID #41

Merged

Conversation

ErisApps
Copy link
Contributor

As a continuation following the discussion in PR #40, this PR handles the introduction of 2 (arguably) new static methods Harmony.UnpatchAll() and Harmony.UnpatchID(string harmonyID).
Other than that, it also marks the old non-static .UnpatchAll(string harmonyID = null) as Obsolete.

Not sure how I can verify whether this actually works as intended, but the unit tests seem to run just fine, aside from a seemingly unrelated unit test that was already failing before the changes (TestTraverse_Types.Traverse_InnerStatic)

I think this covers everything that was mentioned in the other PR, but if I missed anything, please let me know.

@ErisApps ErisApps changed the title Feature/static unpatch all and unpatch Feature/Static UnpatchAll and UnpatchID Dec 19, 2021
Harmony/Public/Harmony.cs Outdated Show resolved Hide resolved
Harmony/Public/Harmony.cs Outdated Show resolved Hide resolved
Harmony/Public/Harmony.cs Outdated Show resolved Hide resolved
@ghorsington ghorsington changed the title Feature/Static UnpatchAll and UnpatchID Static UnpatchAll and UnpatchID Dec 20, 2021
@ghorsington ghorsington merged commit ec78e8a into BepInEx:master Dec 21, 2021
@ErisApps ErisApps deleted the feature/Static_UnpatchAll_and_UnpatchID branch December 21, 2021 08:52
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.

5 participants