diff --git a/Program.cs b/Program.cs index 71fccc3..721eca6 100644 --- a/Program.cs +++ b/Program.cs @@ -33,7 +33,6 @@ public class Program AssemblyDefinition assembly = AssemblyDefinition.ReadAssembly(dllPath, new ReaderParameters { }); TypeDefinition targetType = assembly.MainModule.Types.First(t => t.Name == "ProjectUtils"); MethodDefinition method = targetType.Methods.First(m => m.Name == "EnsureGodotSdkIsUpToDate"); - TypeReference? stringType = assembly.MainModule.ImportReference(typeof(string)); @@ -69,7 +68,6 @@ public class Program method.Body.Variables.Clear(); ILProcessor il = method.Body.GetILProcessor(); - //VariableDefinition root = new VariableDefinition(projectRootElementTypeDef); method.Body.Variables.Add(root); @@ -139,9 +137,7 @@ public class Program il.Append(il.Create(OpCodes.Ret)); - - assembly.Write($"{dllPath}.2.dll"); File.Replace($"{dllPath}.2.dll", dllPath, null); } -} \ No newline at end of file +}