C++: Significant iteration of scaffolding output (see commit description)
Generate pre-compiled headers for IL2CPP types and functions Resolved naming conflicts with functions and macros from windows.h IL2CPP app functions and TypeInfos were incorrectly placed in global namespace instead of 'app' Added /MP compiler option (multi-processor compilation) Split source files into folders Move GetBaseAddress() into helpers.cpp Add NewConsole() to helpers.cpp Move init_il2cpp() from IL2CPP declarations header to own source file Refactor some header files for consistency and duplicate elimination
This commit is contained in:
@@ -55,7 +55,8 @@ namespace Il2CppInspector
|
||||
}.WriteSingleFile(testPath + $@"\test-result{nameSuffix}.cs");
|
||||
|
||||
new IDAPythonScript(appModel)
|
||||
.WriteScriptToFile(testPath + $@"\test-ida-result{nameSuffix}.py", testPath + $@"\test-cpp-result{nameSuffix}\il2cpp-types.h");
|
||||
.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}");
|
||||
@@ -66,7 +67,7 @@ namespace Il2CppInspector
|
||||
var suffix = (i > 0 ? "-" + i : "");
|
||||
|
||||
compareFiles(testPath, suffix + ".cs", $"test-result{suffix}.cs");
|
||||
compareFiles(testPath, suffix + ".h", $@"test-cpp-result{suffix}\il2cpp-types.h");
|
||||
compareFiles(testPath, suffix + ".h", $@"test-cpp-result{suffix}\appdata\il2cpp-types.h");
|
||||
compareFiles(testPath, suffix + ".py", $"test-ida-result{suffix}.py");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@ $bin = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result.cs)
|
||||
$bin2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result-1.cs)
|
||||
$py = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-ida-result.py)
|
||||
$py2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-ida-result-1.py)
|
||||
$cpp = (gci "$PSScriptRoot/TestBinaries/*/test-cpp-result/*" -Filter il2cpp-types.h)
|
||||
$cpp2 = (gci "$PSScriptRoot/TestBinaries/*/test-cpp-result-1/*" -Filter il2cpp-types.h)
|
||||
$cpp = (gci "$PSScriptRoot/TestBinaries/*/test-cpp-result/appdata/*" -Filter il2cpp-types.h)
|
||||
$cpp2 = (gci "$PSScriptRoot/TestBinaries/*/test-cpp-result-1/appdata/*" -Filter il2cpp-types.h)
|
||||
|
||||
# Get path to expected test results
|
||||
$results = "$PSScriptRoot/TestExpectedResults"
|
||||
|
||||
Reference in New Issue
Block a user