add: Item Manager
This commit is contained in:
@@ -35,7 +35,6 @@ public class Program
|
||||
MethodDefinition method = targetType.Methods.First(m => m.Name == "EnsureGodotSdkIsUpToDate");
|
||||
|
||||
|
||||
|
||||
TypeReference? stringType = assembly.MainModule.ImportReference(typeof(string));
|
||||
VariableDefinition? root = method.Body.Variables.FirstOrDefault(t => t.VariableType.FullName == "Microsoft.Build.Construction.ProjectRootElement");
|
||||
|
||||
@@ -70,7 +69,6 @@ public class Program
|
||||
ILProcessor il = method.Body.GetILProcessor();
|
||||
|
||||
|
||||
|
||||
//VariableDefinition root = new VariableDefinition(projectRootElementTypeDef);
|
||||
method.Body.Variables.Add(root);
|
||||
VariableDefinition godotSdk = new VariableDefinition(stringType);
|
||||
@@ -139,8 +137,6 @@ public class Program
|
||||
|
||||
il.Append(il.Create(OpCodes.Ret));
|
||||
|
||||
|
||||
|
||||
assembly.Write($"{dllPath}.2.dll");
|
||||
File.Replace($"{dllPath}.2.dll", dllPath, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user