Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed to LPUTF8Str to fix Obfuscated Class and Field Problems #101

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Il2CppInterop.Runtime/IL2CPP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
Loading