Tests: Output Python scripts for all targets

This commit is contained in:
Katy Coe
2020-10-13 08:32:12 +02:00
parent 76825f231b
commit c94ce7d80e

View File

@@ -60,8 +60,9 @@ namespace Il2CppInspector
new CppScaffolding(appModel) new CppScaffolding(appModel)
.Write(testPath + $@"\test-cpp-result{nameSuffix}"); .Write(testPath + $@"\test-cpp-result{nameSuffix}");
new PythonScript(appModel) var python = new PythonScript(appModel);
.WriteScriptToFile(testPath + $@"\test-ida{nameSuffix}.py", "IDA", 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-cpp-result{nameSuffix}\appdata\il2cpp-types.h",
testPath + $@"\test-result{nameSuffix}.json"); testPath + $@"\test-result{nameSuffix}.json");
} }