[fix] 修复WebGL一些桥接函数ABI计算的bug
parent
b8b990bfc1
commit
4c6dd1249a
|
@ -261,7 +261,15 @@ namespace HybridCLR.Editor.ABI
|
|||
{
|
||||
return true;
|
||||
}
|
||||
return fields.All(f => f.IsStatic);
|
||||
if (fields.All(f => f.IsStatic))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (typeDef.IsExplicitLayout && fields.Count(f => !f.IsStatic) > 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
protected static TypeInfo CreateGeneralValueType(TypeSig type, int size, int aligment)
|
||||
|
|
Loading…
Reference in New Issue