@@ -474,8 +474,8 @@ public static extern bool il2cpp_class_is_subclass_of(IntPtr klass, IntPtr klass
474474 public static extern IntPtr il2cpp_class_from_il2cpp_type ( IntPtr type ) ;
475475
476476 [ DllImport ( "GameAssembly" , CallingConvention = CallingConvention . Cdecl , CharSet = CharSet . Ansi ) ]
477- public static extern IntPtr il2cpp_class_from_name ( IntPtr image , [ MarshalAs ( UnmanagedType . LPStr ) ] string namespaze ,
478- [ MarshalAs ( UnmanagedType . LPStr ) ] string name ) ;
477+ public static extern IntPtr il2cpp_class_from_name ( IntPtr image , [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string namespaze ,
478+ [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string name ) ;
479479
480480 [ DllImport ( "GameAssembly" , CallingConvention = CallingConvention . Cdecl , CharSet = CharSet . Ansi ) ]
481481 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
503503
504504 [ DllImport ( "GameAssembly" , CallingConvention = CallingConvention . Cdecl , CharSet = CharSet . Ansi ) ]
505505 public static extern IntPtr il2cpp_class_get_field_from_name ( IntPtr klass ,
506- [ MarshalAs ( UnmanagedType . LPStr ) ] string name ) ;
506+ [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string name ) ;
507507
508508 [ DllImport ( "GameAssembly" , CallingConvention = CallingConvention . Cdecl , CharSet = CharSet . Ansi ) ]
509509 public static extern IntPtr il2cpp_class_get_methods ( IntPtr klass , ref IntPtr iter ) ;
0 commit comments