From 2c3faf8887b260fa71961da5684e485f79188dc4 Mon Sep 17 00:00:00 2001 From: johnche Date: Wed, 23 Oct 2024 14:17:04 +0800 Subject: [PATCH] =?UTF-8?q?[unity]=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Editor/Resources/puerts/xil2cpp/Puerts_il2cpp.cpp.txt | 6 ------ .../Assets/core/upm/Runtime/Src/IL2Cpp/Native/NativeAPI.cs | 6 ------ 2 files changed, 12 deletions(-) diff --git a/unity/Assets/core/upm/Editor/Resources/puerts/xil2cpp/Puerts_il2cpp.cpp.txt b/unity/Assets/core/upm/Editor/Resources/puerts/xil2cpp/Puerts_il2cpp.cpp.txt index b6d5e7ed6a..602466dc78 100644 --- a/unity/Assets/core/upm/Editor/Resources/puerts/xil2cpp/Puerts_il2cpp.cpp.txt +++ b/unity/Assets/core/upm/Editor/Resources/puerts/xil2cpp/Puerts_il2cpp.cpp.txt @@ -108,11 +108,6 @@ intptr_t GetFieldInfoPointer(Il2CppReflectionField* field) return (intptr_t)field->field; } -intptr_t GetObjectPointer(Il2CppObject *obj) -{ - return (intptr_t)obj; -} - intptr_t GetTypeId(Il2CppReflectionType *type) { return (intptr_t)il2cpp_codegen_class_from_type(type->type); @@ -1980,7 +1975,6 @@ void InitialPuerts(pesapi_func_ptr* func_array) { InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetMethodPointer(System.Reflection.MethodBase)", (Il2CppMethodPointer)puerts::GetMethodPointer); InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetMethodInfoPointer(System.Reflection.MethodBase)", (Il2CppMethodPointer)puerts::GetMethodInfoPointer); - InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetObjectPointer(System.Object)", (Il2CppMethodPointer)puerts::GetObjectPointer); InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetTypeId(System.Type)", (Il2CppMethodPointer)puerts::GetTypeId); InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetFieldOffset(System.Reflection.FieldInfo,System.Boolean)", (Il2CppMethodPointer)puerts::GetFieldOffset); InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetFieldInfoPointer(System.Reflection.FieldInfo)", (Il2CppMethodPointer)puerts::GetFieldInfoPointer); diff --git a/unity/Assets/core/upm/Runtime/Src/IL2Cpp/Native/NativeAPI.cs b/unity/Assets/core/upm/Runtime/Src/IL2Cpp/Native/NativeAPI.cs index d2b262819c..2fc08b00ed 100644 --- a/unity/Assets/core/upm/Runtime/Src/IL2Cpp/Native/NativeAPI.cs +++ b/unity/Assets/core/upm/Runtime/Src/IL2Cpp/Native/NativeAPI.cs @@ -154,12 +154,6 @@ public static IntPtr GetFieldInfoPointer(FieldInfo fieldInfo) throw new NotImplementedException(); } - [MethodImpl(MethodImplOptions.InternalCall)] - public static IntPtr GetObjectPointer(Object obj) - { - throw new NotImplementedException(); - } - [MethodImpl(MethodImplOptions.InternalCall)] public static IntPtr GetTypeId(Type type) {