Plugins: Add hook TODOs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user