@@ -1389,7 +1389,15 @@ private void GenerateMethodInfo(string methodInfoName, string structTypeName, Li
1389
1389
1390
1390
methodInfoHeader . Append ( $ "struct { methodInfoName } {{\n ") ;
1391
1391
methodInfoHeader . Append ( $ "\t Il2CppMethodPointer methodPointer;\n ") ;
1392
- methodInfoHeader . Append ( $ "\t void* invoker_method;\n ") ;
1392
+ if ( il2Cpp . Version >= 29 )
1393
+ {
1394
+ methodInfoHeader . Append ( $ "\t Il2CppMethodPointer virtualMethodPointer;\n ") ;
1395
+ methodInfoHeader . Append ( $ "\t InvokerMethod invoker_method;\n ") ;
1396
+ }
1397
+ else
1398
+ {
1399
+ methodInfoHeader . Append ( $ "\t void* invoker_method;\n ") ; //TODO
1400
+ }
1393
1401
methodInfoHeader . Append ( $ "\t const char* name;\n ") ;
1394
1402
if ( il2Cpp . Version <= 24 )
1395
1403
{
@@ -1400,7 +1408,14 @@ private void GenerateMethodInfo(string methodInfoName, string structTypeName, Li
1400
1408
methodInfoHeader . Append ( $ "\t { structTypeName } _c *klass;\n ") ;
1401
1409
}
1402
1410
methodInfoHeader . Append ( $ "\t const Il2CppType *return_type;\n ") ;
1403
- methodInfoHeader . Append ( $ "\t const void* parameters;\n ") ;
1411
+ if ( il2Cpp . Version >= 29 )
1412
+ {
1413
+ methodInfoHeader . Append ( $ "\t const Il2CppType** parameters;\n ") ;
1414
+ }
1415
+ else
1416
+ {
1417
+ methodInfoHeader . Append ( $ "\t const void* parameters;\n ") ; //ParameterInfo*
1418
+ }
1404
1419
if ( rgctxs . Count > 0 )
1405
1420
{
1406
1421
methodInfoHeader . Append ( $ "\t const { methodInfoName } _RGCTXs* rgctx_data;\n ") ;
@@ -1412,7 +1427,14 @@ private void GenerateMethodInfo(string methodInfoName, string structTypeName, Li
1412
1427
methodInfoHeader . Append ( $ "\t union\n ") ;
1413
1428
methodInfoHeader . Append ( $ "\t {{\n ") ;
1414
1429
methodInfoHeader . Append ( $ "\t \t const void* genericMethod;\n ") ;
1415
- methodInfoHeader . Append ( $ "\t \t const void* genericContainer;\n ") ;
1430
+ if ( il2Cpp . Version >= 27 )
1431
+ {
1432
+ methodInfoHeader . Append ( $ "\t \t const void* genericContainerHandle;\n ") ;
1433
+ }
1434
+ else
1435
+ {
1436
+ methodInfoHeader . Append ( $ "\t \t const void* genericContainer;\n ") ;
1437
+ }
1416
1438
methodInfoHeader . Append ( $ "\t }};\n ") ;
1417
1439
if ( il2Cpp . Version <= 24 )
1418
1440
{
0 commit comments