Inheritance: PatcherObject
Beispiel #1
0
 public MethodReference ImportMethod(MethodPatcher toImport)
 {
     return mainModule.Import(toImport.methodDefinition);
 }
Beispiel #2
0
 public MethodPatcher InsertCallBefore(Instruction before, MethodPatcher method)
 {
     return(InsertBefore(before, Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method))));
 }
Beispiel #3
0
 public MethodPatcher InsertCallBefore(int before, MethodPatcher method)
 {
     return(InsertCallBefore(IlProc.Body.Instructions[before], method));
 }
Beispiel #4
0
 public MethodPatcher InsertCallAfter(int after, MethodPatcher method)
 {
     return(InsertCallAfter(IlProc.Body.Instructions[after], method));
 }
Beispiel #5
0
 public MethodPatcher InsertCallBeforeRet(MethodPatcher method)
 {
     return(InsertBefore(IlProc.Body.Instructions[IlProc.Body.Instructions.Count - 1], Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method))));
 }
Beispiel #6
0
 public MethodPatcher AppendCall(MethodPatcher method)
 {
     return(Append(Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method))));
 }
Beispiel #7
0
 public MethodPatcher InsertCallAfter(Instruction after, MethodPatcher method)
 {
     return(InsertAfter(after, Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method))));
 }
Beispiel #8
0
		public MethodPatcher InsertCallBefore(int before, MethodPatcher method) => InsertCallBefore(IlProc.Body.Instructions[before], method);
Beispiel #9
0
 public MethodReference ImportMethod(MethodPatcher toImport)
 {
     return(mainModule.Import(toImport.methodDefinition));
 }
Beispiel #10
0
		public MethodPatcher InsertCallBefore(Instruction before, MethodPatcher method) => InsertBefore(before, Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method)));
Beispiel #11
0
		public MethodPatcher InsertCallBeforeRet(MethodPatcher method) => InsertBefore(IlProc.Body.Instructions[IlProc.Body.Instructions.Count - 1],
																					   Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method)));
Beispiel #12
0
		public MethodPatcher InsertCallAfter(int after, MethodPatcher method) => InsertCallAfter(IlProc.Body.Instructions[after], method);
Beispiel #13
0
		public MethodPatcher InsertCallAfter(Instruction after, MethodPatcher method) => InsertAfter(after, Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method)));
Beispiel #14
0
		public MethodPatcher AppendCall(MethodPatcher method) => Append(Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method)));