IDA: Refactor to use universal script and JSON metadata

This commit is contained in:
Katy Coe
2020-08-04 02:32:16 +02:00
parent dea29751ef
commit 5c2e06daee
4 changed files with 39 additions and 215 deletions

View File

@@ -57,12 +57,13 @@ namespace Il2CppInspector
new JSONMetadata(appModel)
.Write(testPath + $@"\test-result{nameSuffix}.json");
new IDAPythonScript(appModel)
.WriteScriptToFile(testPath + $@"\test-ida-result{nameSuffix}.py",
testPath + $@"\test-cpp-result{nameSuffix}\appdata\il2cpp-types.h");
new CppScaffolding(appModel)
.Write(testPath + $@"\test-cpp-result{nameSuffix}");
new IDAPythonScript(appModel)
.WriteScriptToFile(testPath + $@"\test-ida-result{nameSuffix}.py",
testPath + $@"\test-cpp-result{nameSuffix}\appdata\il2cpp-types.h",
testPath + $@"\test-result{nameSuffix}.json");
}
// Compare test results with expected results