Rename AppModel.ILModel to AppModel.TypeModel

This commit is contained in:
Katy Coe
2020-08-14 02:18:53 +02:00
parent 0f3b31749b
commit ca55125858
5 changed files with 21 additions and 21 deletions

View File

@@ -55,13 +55,13 @@ namespace Il2CppInspector.Outputs
// We could use ILModel.CustomAttributeGenerators here to ensure uniqueness but then we lose function name information
// TODO: Merge CAG names that deal with multiple attribute types to reflect all of the attribute type names (solving the above)
writeArray("customAttributesGenerators", () => {
foreach (var method in model.ILModel.AttributesByIndices.Values) {
foreach (var method in model.TypeModel.AttributesByIndices.Values) {
writeObject(() => writeTypedFunctionName(method.VirtualAddress.Start, method.Signature, method.Name));
}
}, "Custom attributes generators");
writeArray("methodInvokers", () => {
foreach (var method in model.ILModel.MethodInvokers.Where(m => m != null)) {
foreach (var method in model.TypeModel.MethodInvokers.Where(m => m != null)) {
writeObject(() => writeTypedFunctionName(method.VirtualAddress.Start, method.GetSignature(model.UnityVersion), method.Name));
}
}, "Method.Invoke thunks");