Skip to content

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

Copy link
Member

@nike4613 nike4613 left a comment

Choose a reason for hiding this comment

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

I very much dislike having opaque binaries checked in to the source tree, especially without the source which produces them being checked in. My preference would be building the assemblies in the tests using Cecil instead.

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.

2 participants