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

fix: IL2CPP in Unity 6 #1735

Merged
merged 3 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## Fixes

- The SDK no longer causes games to crash out of the box on platforms that have disk access restrictions (i.e. Nintendo Switch) ([#1728](https://github.com/getsentry/sentry-unity/pull/1728))
- IL2CPP in Unity 6 ([#1735](https://github.com/getsentry/sentry-unity/pull/1735))
tustanivsky marked this conversation as resolved.
Show resolved Hide resolved

### Dependencies

Expand Down
2 changes: 1 addition & 1 deletion package-dev/Runtime/SentryInitialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void SwapHexByte(IntPtr buffer, Int32 offset1, Int32 offset2)
return Marshal.PtrToStringAnsi(debugIdPtr);
}

#if UNITY_2023
#if UNITY_2023_1_OR_NEWER
private static IntPtr Il2CppGcHandleGetTargetShim(IntPtr gchandle) => il2cpp_gchandle_get_target(gchandle);

// Available in Unity `2013.3.12f1` (and later)
Expand Down
Loading