Package com.aliucord.patcher
Class Patcher
-
- All Implemented Interfaces:
public class Patcher
-
-
Constructor Summary
Constructors Constructor Description Patcher()
-
Method Summary
Modifier and Type Method Description static XC_MethodHook.Unhook
addPatch(Member member, XC_MethodHook hook)
Add a patch static XC_MethodHook.Unhook
addPatch(Class<out Object> clazz, String methodName, Array<Class<out Object>> paramTypes, XC_MethodHook hook)
Add a patch static XC_MethodHook.Unhook
addPatch(String forClass, String methodName, Array<Class<out Object>> paramTypes, XC_MethodHook hook)
Add a patch -
-
Method Detail
-
addPatch
static XC_MethodHook.Unhook addPatch(Member member, XC_MethodHook hook)
Add a patch
- Parameters:
member
- The member (method, constructor) to patchhook
- MethodHook
-
addPatch
static XC_MethodHook.Unhook addPatch(Class<out Object> clazz, String methodName, Array<Class<out Object>> paramTypes, XC_MethodHook hook)
Add a patch
- Parameters:
clazz
- Class to patchmethodName
- The name of the methodparamTypes
- The types of the parameters (e.g.hook
- MethodHook
-
addPatch
static XC_MethodHook.Unhook addPatch(String forClass, String methodName, Array<Class<out Object>> paramTypes, XC_MethodHook hook)
Add a patch
- Parameters:
forClass
- The full name of the class to patch (e.g.methodName
- The name of the methodparamTypes
- The types of the parameters (e.g.hook
- MethodHook
-
-
-
-