@@ -32,7 +32,7 @@ public class Options
3232
3333 public List < RawReversePInvokeMethodInfo > ReversePInvokeMethods { get ; set ; }
3434
35- public IReadOnlyCollection < RawCalliMethodSignatureInfo > CalliMethodSignatures { get ; set ; }
35+ public IReadOnlyCollection < CallNativeMethodSignatureInfo > CalliMethodSignatures { get ; set ; }
3636
3737 public bool Development { get ; set ; }
3838 }
@@ -61,7 +61,7 @@ private class CalliMethodInfo
6161
6262 private readonly List < RawReversePInvokeMethodInfo > _originalReversePInvokeMethods ;
6363
64- private readonly List < RawCalliMethodSignatureInfo > _originalCalliMethodSignatures ;
64+ private readonly List < CallNativeMethodSignatureInfo > _originalCalliMethodSignatures ;
6565
6666 private readonly string _templateCode ;
6767
@@ -624,7 +624,7 @@ private List<ABIReversePInvokeMethodInfo> BuildABIMethods(List<RawReversePInvoke
624624 return newMethods ;
625625 }
626626
627- private List < CalliMethodInfo > BuildCalliMethods ( List < RawCalliMethodSignatureInfo > rawMethods )
627+ private List < CalliMethodInfo > BuildCalliMethods ( List < CallNativeMethodSignatureInfo > rawMethods )
628628 {
629629 var methodsBySig = new Dictionary < string , CalliMethodInfo > ( ) ;
630630 foreach ( var method in rawMethods )
@@ -1228,7 +1228,7 @@ private void GenerateManaged2NativeFunctionPointerMethod(CalliMethodInfo methodI
12281228 string paramNameListStr = string . Join ( ", " , method . ParamInfos . Select ( p => GetManaged2NativePassParam ( p . Type , $ "localVarBase+argVarIndexs[{ p . Index } ]") ) ) ;
12291229 string il2cppCallConventionName = GetIl2cppCallConventionName ( methodInfo . Callvention ) ;
12301230 lines . Add ( $@ "
1231- static void __M2NF_{ methodInfo . Signature } (const void* methodPointer, uint16_t* argVarIndexs, StackObject* localVarBase, void* ret)
1231+ static void __M2NF_{ methodInfo . Signature } (Il2CppMethodPointer methodPointer, uint16_t* argVarIndexs, StackObject* localVarBase, void* ret)
12321232{{
12331233 typedef { method . ReturnInfo . Type . GetTypeName ( ) } ({ il2cppCallConventionName } *NativeMethod)({ paramListStr } );
12341234 { ( ! method . ReturnInfo . IsVoid ? $ "*({ method . ReturnInfo . Type . GetTypeName ( ) } *)ret = " : "" ) } ((NativeMethod)(methodPointer))({ paramNameListStr } );
0 commit comments