Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieyang committed Jan 19, 2024
1 parent 441257c commit decc0c2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions unity/Assets/core/upm/Runtime/Src/Default/Native/PuertsDLL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -553,23 +553,15 @@ public static string GetStringFromResult(IntPtr resultInfo)
public static extern bool ResultIsBigInt(IntPtr resultInfo);

[DllImport(DLLNAME, CallingConvention = CallingConvention.Cdecl)]
#if UNITY_WEBGL && !UNITY_EDITOR
public static extern IntPtr GetBigIntFromResult(IntPtr resultInfo);
#else
public static extern long GetBigIntFromResult(IntPtr resultInfo);
#endif

public static long GetBigIntFromResultCheck(IntPtr resultInfo)
{
if (!ResultIsBigInt(resultInfo))
{
return 0;
}
#if UNITY_WEBGL && !UNITY_EDITOR
return Marshal.ReadInt64(GetBigIntFromResult(resultInfo));
#else
return GetBigIntFromResult(resultInfo);
#endif
}

[DllImport(DLLNAME, CallingConvention = CallingConvention.Cdecl)]
Expand Down

0 comments on commit decc0c2

Please sign in to comment.