Plugins: Add hook TODOs

This commit is contained in:
Katy Coe
2020-12-21 23:02:32 +01:00
parent 3e27cd25e9
commit b9409e7425
7 changed files with 18 additions and 0 deletions

View File

@@ -259,6 +259,8 @@ namespace Il2CppInspector
CodeRegistration = Image.ReadMappedObject<Il2CppCodeRegistration>(codeRegistration);
MetadataRegistration = Image.ReadMappedObject<Il2CppMetadataRegistration>(metadataRegistration);
// TODO: Plugin hook PreProcessBinary
// Do basic validatation that MetadataRegistration and CodeRegistration are sane
/*
* GlobalMethodPointers (<= 24.1) must be a series of pointers in il2cpp or .text, and in sequential order
@@ -378,6 +380,8 @@ namespace Il2CppInspector
GenericMethodPointers.Add(MethodSpecs[tableEntry.genericMethodIndex], genericMethodPointers[tableEntry.indices.methodIndex]);
GenericMethodInvokerIndices.Add(MethodSpecs[tableEntry.genericMethodIndex], tableEntry.indices.invokerIndex);
}
// TODO: Plugin hook PostProcessBinary
}
// IL2CPP API exports

View File

@@ -313,6 +313,8 @@ namespace Il2CppInspector
// Merge all metadata usage references into a single distinct list
MetadataUsages = buildMetadataUsages();
// TODO: Plugin hook PostProcessPackage
}
// Get a method pointer if available