CLI/GUI: Add shim DLL output support

This commit is contained in:
Katy Coe
2021-01-10 11:38:45 +01:00
parent a34ff5cc44
commit 7961fc6dab
4 changed files with 41 additions and 4 deletions

View File

@@ -48,6 +48,9 @@ namespace Il2CppInspector.CLI
[Option('o', "json-out", Required = false, HelpText = "JSON metadata output file", Default = "metadata.json")]
public string JsonOutPath { get; set; }
[Option('d', "dll-out", Required = false, HelpText = ".NET assembly shim DLLs output path", Default = "dll")]
public string DllOutPath { get; set; }
[Option("metadata-out", Required = false, HelpText = "IL2CPP metadata file output (for extracted or decrypted metadata; ignored otherwise)")]
public string MetadataFileOut { get; set; }
@@ -395,6 +398,10 @@ namespace Il2CppInspector.CLI
getOutputPath(options.JsonOutPath, "json", imageIndex));
}
// DLL output
using (new Benchmark("Generate .NET assembly shim DLLs"))
new AssemblyShims(model).Write(getOutputPath(options.DllOutPath, "", imageIndex));
imageIndex++;
}