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

MonoModder support multi mods patch same method #208

Open
wants to merge 5 commits into
base: reorganize
Choose a base branch
from

Conversation

MikiraSora
Copy link

@MikiraSora MikiraSora commented Dec 30, 2024

As the documentation said, currently MonoModder does not support multiple mods patching the same method.

The current situation is that if multiple mods patch the same method, the patched methods are replaced, not merged together. This is unacceptable for multiple mod developers, as they don't want their mod implementations to be dropped or disabled by other mods.

Therefore, I will try to add new conditions and implementations to MonoModder. The conditions and replacement process are written in code comments.

However, this feature is turned off by default for current compatibility, so if you need this feature, please set CombineSameMethodMultiModPatches(or env var MONOMOD_COMBINE_MORE_MODS_PATCH_SAME_METHOD=1) to true.

Also added some related unit tests

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.

1 participant