From decc0c2152dc351ced3aaae6e8353ab2976e60a9 Mon Sep 17 00:00:00 2001 From: zombieyang Date: Fri, 19 Jan 2024 10:57:18 +0800 Subject: [PATCH] [unity] compat with zombieyang/puerts_unity_webgl_demo#53 --- .../core/upm/Runtime/Src/Default/Native/PuertsDLL.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/unity/Assets/core/upm/Runtime/Src/Default/Native/PuertsDLL.cs b/unity/Assets/core/upm/Runtime/Src/Default/Native/PuertsDLL.cs index 928bf58dbb..1bc96b8100 100644 --- a/unity/Assets/core/upm/Runtime/Src/Default/Native/PuertsDLL.cs +++ b/unity/Assets/core/upm/Runtime/Src/Default/Native/PuertsDLL.cs @@ -553,11 +553,7 @@ 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) { @@ -565,11 +561,7 @@ public static long GetBigIntFromResultCheck(IntPtr resultInfo) { return 0; } -#if UNITY_WEBGL && !UNITY_EDITOR - return Marshal.ReadInt64(GetBigIntFromResult(resultInfo)); -#else return GetBigIntFromResult(resultInfo); -#endif } [DllImport(DLLNAME, CallingConvention = CallingConvention.Cdecl)]