From c94ce7d80e0a6efd673eec0abddfa1b523e84a82 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Tue, 13 Oct 2020 08:32:12 +0200 Subject: [PATCH] Tests: Output Python scripts for all targets --- Il2CppTests/TestRunner.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Il2CppTests/TestRunner.cs b/Il2CppTests/TestRunner.cs index ebcf03e..b1f2a50 100644 --- a/Il2CppTests/TestRunner.cs +++ b/Il2CppTests/TestRunner.cs @@ -60,8 +60,9 @@ namespace Il2CppInspector new CppScaffolding(appModel) .Write(testPath + $@"\test-cpp-result{nameSuffix}"); - new PythonScript(appModel) - .WriteScriptToFile(testPath + $@"\test-ida{nameSuffix}.py", "IDA", + var python = new PythonScript(appModel); + foreach (var target in PythonScript.GetAvailableTargets()) + python.WriteScriptToFile(testPath + $@"\test-{target.ToLower()}{nameSuffix}.py", target, testPath + $@"\test-cpp-result{nameSuffix}\appdata\il2cpp-types.h", testPath + $@"\test-result{nameSuffix}.json"); }