File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public Metadata(Stream stream) : base(stream)
52
52
{
53
53
throw new InvalidDataException ( "ERROR: Metadata file supplied is not valid metadata file." ) ;
54
54
}
55
- if ( version < 16 || version > 29 )
55
+ if ( version < 16 || version > 31 )
56
56
{
57
57
throw new NotSupportedException ( $ "ERROR: Metadata file supplied is not a supported version[{ version } ].") ;
58
58
}
Original file line number Diff line number Diff line change @@ -237,6 +237,8 @@ public class Il2CppMethodDefinition
237
237
public uint nameIndex ;
238
238
public int declaringType ;
239
239
public int returnType ;
240
+ [ Version ( Min = 31 ) ]
241
+ public int returnParameterToken ;
240
242
public int parameterStart ;
241
243
[ Version ( Max = 24 ) ]
242
244
public int customAttributeIndex ;
Original file line number Diff line number Diff line change @@ -418,6 +418,7 @@ public void WriteScript(string outputDir)
418
418
break ;
419
419
case 29 :
420
420
case 29.1 :
421
+ case 31 :
421
422
sb . Append ( HeaderConstants . HeaderV29 ) ;
422
423
break ;
423
424
default :
Original file line number Diff line number Diff line change @@ -380,6 +380,10 @@ private ulong FindCodeRegistration2019(List<SearchSection> secs)
380
380
il2Cpp . Position = il2Cpp . MapVATR ( refva3 - il2Cpp . PointerSize ) ;
381
381
if ( il2Cpp . ReadIntPtr ( ) == imageCount )
382
382
{
383
+ if ( il2Cpp . Version >= 31 )
384
+ {
385
+ return refva3 - il2Cpp . PointerSize * 16 ;
386
+ }
383
387
if ( il2Cpp . Version >= 29 )
384
388
{
385
389
return refva3 - il2Cpp . PointerSize * 14 ;
You can’t perform that action at this time.
0 commit comments