Skip to content

Commit

Permalink
Fixed #687
Browse files Browse the repository at this point in the history
  • Loading branch information
Perfare committed Feb 22, 2023
1 parent 19b4b43 commit d7ef4b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Il2CppDumper/Outputs/StructGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,11 @@ private string ParseType(Il2CppType il2CppType, Il2CppGenericContext context = n
if (context != null)
{
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 pointers = il2Cpp.MapVATR<ulong>(genericInst.type_argv, genericInst.type_argc);
var pointer = pointers[genericParameter.num];
Expand Down

0 comments on commit d7ef4b3

Please sign in to comment.