CLI/GUI: Add shim DLL output support
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user