Releases: BepInEx/HarmonyX
Releases · BepInEx/HarmonyX
Release v2.5.2
Changelog
- Fixed reverse patchers sometimes emitting extra
rets which can break IL
Release v2.5.1
Changelog
- Updated MonoMod.RuntimeDetour to v21.07.08.03
Release v2.5.0
Changelog
- Add
CoderMatcher.ThrowIfhelper- Allows to assert that code is matched properly and log
- Allow multitargeting patches to work with class patch notation, see #27
- Fix multitargeting patching not working if both complete and incomplete attributes are used
- Failed Harmony patch method generation now always throws an exception except of just emitting error logs
Release v2.4.2
Release v2.4.1
Changelog
- Added logging to reverse patching
- Fixed
HarmonyDebugattribute to work properly- Allows you to automatically enable all debug logs for a particular patch without having to modify log levels
Release v2.4.0
Changelog
- New patch type: ILManipulators (courtesy of @Windows10CE )
- Allows to access to
ILContextof the patch method to modify the underlyingMethodDefinitiondirectly - Runs after all other Harmony patches
- Note: This is an advanced patch method. Refer to the wiki for caveats.
- Allows to access to
Release v2.3.2
Changelog
- Updated MonoMod to 21.1.11.1
- Merge upstream up to
6d51b3b- Fixed invalid hook invocation when boxing struct by reference
- Added
Harmony.GetOriginalMethod(MethodInfo)that allow to look up originalMethodBasefor the given patch method
- Fixed
__runOriginalbeing undefined in postfixes if no prefixes were called - Properly resolve nested functions in method descriptions
- Improve pretty-printing of method and type description with TypeNameHelper
Release v2.3.1
Changelog
- Merge latest changes from upstream up to 70d4652
- Enhanced conversion between value types and reference types
- Fix new
HarmonyPatch(string, string)attribute not being usable in attributes
Release v2.3.0
Changelog
- Added new
HarmonyPatchoverload:public HarmonyPatch(string assemblyQualifiedDeclaringType, string methodName, ...)- Allows to specify target type by its assembly-qualified name
- Updated MonoMod.RuntimeDetour to 20.11.26.2
Release v2.2.0
Changelog
- Merged latest codebase from pardeike/Harmony#e79874b
- Add
AccessTools.CreateInstance<T>() AccessTools.CreateInstancecan now use non-public parameterless constructorsAccessTools.CreateInstancealso now invokes theConstructorInforather than usingActivator.CreateInstance; the former should be fasterFieldRefnow supportsF= underlying integral type for enum field types
- Add
- Added support for multitargeted patch methods
- If you define multiple complete
HarmonyPatchattributes on a method, they will be applied separately. This way you can specify multiple patch targets on the same method HarmonyPatchattribute is considered complete when it defines both target type and target method.
- If you define multiple complete