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

Manual patches #272

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Manual patches #272

wants to merge 1 commit into from

Conversation

gotmachine
Copy link
Contributor

Added a [ManualPatch] attribute.

When applied to a class derived from BasePatch, the patch won't be automatically applied by the default patching infrastructure.
To apply the patch, call BasePatch.Patch() manually.

Note that if that call happens before ModuleManager has patched the configs (ie, before part compilation), BasePatch.IgnoreConfig must be overridden to return true, or the patch won't be applied.

Main intended usage is for patches requiring to be applied before ModuleManagerPostLoad.

…e called manually. Main intended usage is for patches requiring to be applied before ModuleManagerPostLoad.
@gotmachine gotmachine added the enhancement New feature or request label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

1 participant