Skip to content

Manual patches#272

Merged
gotmachine merged 1 commit into
devfrom
ManualPatch
Mar 8, 2025
Merged

Manual patches#272
gotmachine merged 1 commit into
devfrom
ManualPatch

Conversation

@gotmachine
Copy link
Copy Markdown
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
@gotmachine gotmachine mentioned this pull request Oct 19, 2024
@gotmachine gotmachine merged commit c848dda into dev Mar 8, 2025
@gotmachine gotmachine deleted the ManualPatch branch March 9, 2025 09:27
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