[fix] 修复未对 MonoPInvokeCallback标注的函数签名做Optimized变换,导致与Runtime计算结果不一致的bug
parent
d8e155dc25
commit
82499dfe32
|
@ -82,6 +82,7 @@ namespace HybridCLR.Editor.ReversePInvokeWrap
|
|||
ReturnInfo = new ReturnInfo { Type = typeCreator.CreateTypeInfo(method.Method.ReturnType)},
|
||||
ParamInfos = method.Method.Parameters.Select(p => new ParamInfo { Type = typeCreator.CreateTypeInfo(p.Type)}).ToList(),
|
||||
};
|
||||
typeCreator.OptimizeMethod(desc);
|
||||
desc.Init();
|
||||
if (!methodsBySig.TryGetValue(desc.Sig, out var arm))
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "com.focus-creative-games.hybridclr_unity",
|
||||
"version": "0.5.0",
|
||||
"version": "0.5.1",
|
||||
"displayName": "HybridCLR",
|
||||
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
|
||||
"category": "Runtime",
|
||||
|
|
Loading…
Reference in New Issue