Due to some changes in the Il2Cpp headers, the version handling system needs extended to support Unity version 2021.2.0+. I have dubbed this version 27_3.
ParameterInfo was removed
MethodInfo now holds a type pointer array instead a parameter info array
Class had some small changes in the bit fields
As such, I've tried to handle the ParameterInfo removal as elegantly as possible:
I added a HasNamePosToken property to UnityVersionHandler and the interfaces for parameter info wrapping and handling
I created a handler for ParameterInfo 27_3 with not supported exceptions for Name, Position, and Token
In the handler, I created a false native struct containing only one member, Il2CppTypeStruct* parameter_type
This way ensures that code surrounding parameters remains clean, requiring only minimal changes like the ones implemented in ClassInjector.
Due to some changes in the Il2Cpp headers, the version handling system needs extended to support Unity version
2021.2.0+
. I have dubbed this version27_3
.As such, I've tried to handle the ParameterInfo removal as elegantly as possible:
HasNamePosToken
property toUnityVersionHandler
and the interfaces for parameter info wrapping and handlingName
,Position
, andToken
Il2CppTypeStruct* parameter_type
This way ensures that code surrounding parameters remains clean, requiring only minimal changes like the ones implemented in
ClassInjector
.