This commit is contained in:
Perfare 2021-04-21 23:06:24 +08:00
parent 65ad2bffa8
commit 2d70941e03

View file

@ -475,10 +475,13 @@ namespace Il2CppDumper
scriptMetadataMethod.Address = il2Cpp.GetRVA(address);
(var methodSpecTypeName, var methodSpecMethodName) = executor.GetMethodSpecName(methodSpec, true);
scriptMetadataMethod.Name = "Method$" + methodSpecTypeName + "." + methodSpecMethodName + "()";
var genericMethodPointer = il2Cpp.methodSpecGenericMethodPointers[methodSpec];
if (genericMethodPointer > 0)
if (il2Cpp.methodSpecGenericMethodPointers.ContainsKey(methodSpec))
{
scriptMetadataMethod.MethodAddress = il2Cpp.GetRVA(genericMethodPointer);
var genericMethodPointer = il2Cpp.methodSpecGenericMethodPointers[methodSpec];
if (genericMethodPointer > 0)
{
scriptMetadataMethod.MethodAddress = il2Cpp.GetRVA(genericMethodPointer);
}
}
}