Skip to content

Commit

Permalink
Merge a455eab into 830bf36
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX authored Jun 18, 2021
2 parents 830bf36 + a455eab commit 0366160
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Confuser.Core/Helpers/InjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ static void CopyMethodDef(MethodDef methodDef, InjectContext ctx) {

newMethodDef.Signature = ctx.Importer.Import(methodDef.Signature);
newMethodDef.Parameters.UpdateParameterTypes();

foreach (var paramDef in methodDef.ParamDefs)
newMethodDef.ParamDefs.Add(new ParamDefUser(paramDef.Name, paramDef.Sequence, paramDef.Attributes));

if (methodDef.ImplMap != null)
newMethodDef.ImplMap = new ImplMapUser(new ModuleRefUser(ctx.TargetModule, methodDef.ImplMap.Module.Name), methodDef.ImplMap.Name, methodDef.ImplMap.Attributes);
Expand Down

0 comments on commit 0366160

Please sign in to comment.