From fd96b02065bf08f33a99466f79d0342c8e4a4c62 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sun, 2 Feb 2020 23:19:44 +0100 Subject: [PATCH] IDA: Add concrete generic method names and addresses --- Il2CppDumper/Il2CppIDAScriptDumper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Il2CppDumper/Il2CppIDAScriptDumper.cs b/Il2CppDumper/Il2CppIDAScriptDumper.cs index 5c9b8c1..36be921 100644 --- a/Il2CppDumper/Il2CppIDAScriptDumper.cs +++ b/Il2CppDumper/Il2CppIDAScriptDumper.cs @@ -67,6 +67,11 @@ def SetName(addr, name): writeMethods(type.Name, type.DeclaredConstructors); writeMethods(type.Name, type.DeclaredMethods); } + + foreach (var method in model.GenericMethods.Values.Where(m => m.VirtualAddress.HasValue)) { + writeLines($"SetName({method.VirtualAddress.Value.Start.ToAddressString()}," + + $"'{method.DeclaringType.Name}$${method.Name}{method.GetFullTypeParametersString()}')"); + } } private void writeMethods(string typeName, IEnumerable methods) {