create fake string segment to allow ida to show the actual strings, also add custom xref between methodinfo and method when both exist

This commit is contained in:
LukeFZ
2024-02-16 11:43:15 +01:00
parent 42d97813df
commit 0f7cd027c3
4 changed files with 70 additions and 11 deletions

View File

@@ -132,10 +132,14 @@ namespace Il2CppInspector.Outputs
// Metedata usage methods
writeArray("methodInfoPointers",
() => {
foreach (var method in model.Methods.Values.Where(m => m.HasMethodInfo)) {
writeObject(() => {
foreach (var method in model.Methods.Values.Where(m => m.HasMethodInfo))
{
writeObject(() =>
{
writeName(method.MethodInfoPtrAddress, method.ToMangledMethodInfoString());
writeDotNetSignature(method.Method);
if (method.HasCompiledCode)
writer.WriteString("methodAddress", method.MethodCodeAddress.ToAddressString());
});
}
}, "MethodInfo pointers");