Output: IDA Python script generation

IL2CPP: Implement MetadataUsages
This commit is contained in:
Carter Bush
2020-01-27 07:31:21 +11:00
committed by Katy Coe
parent 89a0b2e97f
commit 8045f2cfd7
6 changed files with 204 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ namespace Il2CppInspector
[Option('c', "cs-out", Required = false, HelpText = "C# output file (when using single-file layout) or path (when using per namespace, assembly or class layout)", Default = "types.cs")]
public string CSharpOutPath { get; set; }
[Option('p', "py-out", Required = false, Hidden = true, HelpText = "IDA Python script output file", Default = "ida.py")]
[Option('p', "py-out", Required = false, HelpText = "IDA Python script output file", Default = "ida.py")]
public string PythonOutFile { get; set; }
[Option('e', "exclude-namespaces", Required = false, Separator = ',', HelpText = "Comma-separated list of namespaces to suppress in C# output, or 'none' to include all namespaces",
@@ -208,7 +208,10 @@ namespace Il2CppInspector
}
// IDA Python script output
// TODO: IDA Python script output
using (var scriptDumperTimer = new Benchmark("IDA Python Script Dumper")) {
var idaWriter = new Il2CppIDAScriptDumper(model);
idaWriter.WriteScriptToFile(options.PythonOutFile);
}
}
// Success exit code