-
Notifications
You must be signed in to change notification settings - Fork 45
Instantiating Harmony instance
Geoffrey Horsington edited this page Jan 22, 2020
·
2 revisions
Patching always starts by initializing a Harmony instance -- a named instance that exposes patching and unpatching functionality of Harmony. Each instance has a unique ID to identify it, allow unpatching and enable patch ordering via HarmonyBefore
and HarmonyAfter
attributes.
Creating a Harmony instance is simple:
var harmony = new Harmony("com.company.project.product");
The ID is encouraged to use reverse domain name notation, but it is not enforced. However ID of a Harmony instance must be unique!
- Basic usage
-
HarmonyX extensions
1.1. Patching and unpatching
1.2. Prefixes are flowthrough
1.3. Targeting multiple methods with one patch
1.4. Patching enumerators
1.5. Transpiler helpers
1.6. ILManipulators
1.7. Extended patch targets
1.8. New patch attributes -
Extending HarmonyX
2.1. Custom patcher backends -
Misc
4.1. Patch parameters - Implementation differences from Harmony