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

@@ -197,7 +197,12 @@ namespace Il2CppInspector
private bool InitImpl(LoadOptions loadOptions, EventHandler<string> statusCallback) {
LoadOptions = loadOptions;
OnStatusUpdate = statusCallback;
// TODO: Plugin hook PreProcessFile
return Init();
// TODO: Plugin hook PostProcessFile
}
// Confirm file is valid and set up RVA mappings

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

View File

@@ -272,6 +272,8 @@ namespace Il2CppInspector.Model
// Restore stdout
Console.SetOut(stdout);
// TODO: Plugin hook PostProcessAppModel
// This is to allow this method to be chained after a new expression
return this;
}