formatting
This commit is contained in:
@@ -371,12 +371,12 @@ namespace Torch.Managers.PatchManager
|
|||||||
if (fieldDef == null) throw new Exception($"Could not find field {fieldName}");
|
if (fieldDef == null) throw new Exception($"Could not find field {fieldName}");
|
||||||
if (fieldDef.IsStatic)
|
if (fieldDef.IsStatic)
|
||||||
yield return new MsilInstruction(param.ParameterType.IsByRef ? OpCodes.Ldsflda : OpCodes.Ldsfld)
|
yield return new MsilInstruction(param.ParameterType.IsByRef ? OpCodes.Ldsflda : OpCodes.Ldsfld)
|
||||||
.InlineValue(fieldDef);
|
.InlineValue(fieldDef);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
yield return new MsilInstruction(OpCodes.Ldarg_0);
|
yield return new MsilInstruction(OpCodes.Ldarg_0);
|
||||||
yield return new MsilInstruction(param.ParameterType.IsByRef ? OpCodes.Ldflda : OpCodes.Ldfld)
|
yield return new MsilInstruction(param.ParameterType.IsByRef ? OpCodes.Ldflda : OpCodes.Ldfld)
|
||||||
.InlineValue(fieldDef);
|
.InlineValue(fieldDef);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user