Skip to content

Commit

Permalink
Merge d7bfc11 into 830bf36
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX authored Jun 17, 2021
2 parents 830bf36 + d7bfc11 commit cebb302
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));

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 cebb302

Please sign in to comment.