diff --git a/Il2CppInterop.Runtime/IL2CPP.cs b/Il2CppInterop.Runtime/IL2CPP.cs index 9dbd728b..5976d684 100644 --- a/Il2CppInterop.Runtime/IL2CPP.cs +++ b/Il2CppInterop.Runtime/IL2CPP.cs @@ -474,8 +474,8 @@ public static extern bool il2cpp_class_is_subclass_of(IntPtr klass, IntPtr klass public static extern IntPtr il2cpp_class_from_il2cpp_type(IntPtr type); [DllImport("GameAssembly", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] - public static extern IntPtr il2cpp_class_from_name(IntPtr image, [MarshalAs(UnmanagedType.LPStr)] string namespaze, - [MarshalAs(UnmanagedType.LPStr)] string name); + public static extern IntPtr il2cpp_class_from_name(IntPtr image, [MarshalAs(UnmanagedType.LPUTF8Str)] string namespaze, + [MarshalAs(UnmanagedType.LPUTF8Str)] string name); [DllImport("GameAssembly", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] public static extern IntPtr il2cpp_class_from_system_type(IntPtr type); @@ -503,7 +503,7 @@ public static extern IntPtr il2cpp_class_from_name(IntPtr image, [MarshalAs(Unma [DllImport("GameAssembly", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] public static extern IntPtr il2cpp_class_get_field_from_name(IntPtr klass, - [MarshalAs(UnmanagedType.LPStr)] string name); + [MarshalAs(UnmanagedType.LPUTF8Str)] string name); [DllImport("GameAssembly", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] public static extern IntPtr il2cpp_class_get_methods(IntPtr klass, ref IntPtr iter);