mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-10 03:27:28 -03:00
Fixed #687
This commit is contained in:
parent
19b4b43870
commit
d7ef4b3aad
1 changed files with 5 additions and 0 deletions
|
@ -657,6 +657,11 @@ namespace Il2CppDumper
|
||||||
if (context != null)
|
if (context != null)
|
||||||
{
|
{
|
||||||
var genericParameter = executor.GetGenericParameteFromIl2CppType(il2CppType);
|
var genericParameter = executor.GetGenericParameteFromIl2CppType(il2CppType);
|
||||||
|
//https://github.com/Perfare/Il2CppDumper/issues/687
|
||||||
|
if (context.method_inst == 0 && context.class_inst != 0)
|
||||||
|
{
|
||||||
|
goto case Il2CppTypeEnum.IL2CPP_TYPE_VAR;
|
||||||
|
}
|
||||||
var genericInst = il2Cpp.MapVATR<Il2CppGenericInst>(context.method_inst);
|
var genericInst = il2Cpp.MapVATR<Il2CppGenericInst>(context.method_inst);
|
||||||
var pointers = il2Cpp.MapVATR<ulong>(genericInst.type_argv, genericInst.type_argc);
|
var pointers = il2Cpp.MapVATR<ulong>(genericInst.type_argv, genericInst.type_argc);
|
||||||
var pointer = pointers[genericParameter.num];
|
var pointer = pointers[genericParameter.num];
|
||||||
|
|
Loading…
Reference in a new issue