Skip to content

Commit

Permalink
fix: IL2CPP in Unity 6 (#1735)
Browse files Browse the repository at this point in the history
* fix: IL2CPP in Unity 6

* Update changelog

* Update CHANGELOG.md

Co-authored-by: Stefan Jandl <[email protected]>

---------

Co-authored-by: Stefan Jandl <[email protected]>
  • Loading branch information
tustanivsky and bitsandfoxes authored Jul 24, 2024
1 parent 8af04e4 commit d66c8ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,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))
- The SDK no longer causes crashes on Unity 6 in an attempt to provide line numbers ([#1735](https://github.com/getsentry/sentry-unity/pull/1735))

### 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

0 comments on commit d66c8ab

Please sign in to comment.