-
-
Notifications
You must be signed in to change notification settings - Fork 58
feat: Split Sentry.Unity.Native into desktop and console
#2441
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
Conversation
|
Sentry.Unity.Native from console (static)Sentry.Unity.Native into desktop and console
| GameCoreXboxOne: GameCoreXboxOne | ||
| second: | ||
| enabled: 1 | ||
| enabled: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Missing XboxOne platform configuration in Native.dll.meta
The Sentry.Unity.Native.Console.dll.meta file enables XboxOne (with enabled: 1), but Sentry.Unity.Native.dll.meta is missing the corresponding XboxOne platform entry to disable it. While GameCoreScarlett and GameCoreXboxOne were both explicitly set to enabled: 0 in the Native version, the XboxOne platform configuration entry is absent entirely. This inconsistency could cause both DLLs to be available on XboxOne or lead to unexpected platform resolution behavior.
Additional Locations (1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While GameCoreScarlett and GameCoreXboxOne were both explicitly set to enabled: 0 in the Native version, the XboxOne platform configuration entry is absent entirely.
what? lgtm 😕
| #if SENTRY_NATIVE_CONSOLE | ||
| [DllImport("__Internal", EntryPoint = "vsnprintf")] | ||
| #else | ||
| [DllImport("msvcrt", EntryPoint = "vsnprintf")] | ||
| #endif | ||
| private static extern int vsnprintf_windows(IntPtr buffer, UIntPtr bufferSize, IntPtr format, IntPtr args); | ||
|
|
||
| #if SENTRY_NATIVE_CONSOLE | ||
| [DllImport("__Internal", EntryPoint = "vsnprintf")] | ||
| #else | ||
| [DllImport("libc", EntryPoint = "vsnprintf")] | ||
| #endif | ||
| private static extern int vsnprintf_linux(IntPtr buffer, UIntPtr bufferSize, IntPtr format, IntPtr args); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this where the ps5 vsnprintf issue was coming from? Or was it a different function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. But #2433 is not merged yet. I'll rebase it on this one.
| GameCoreXboxOne: GameCoreXboxOne | ||
| second: | ||
| enabled: 1 | ||
| enabled: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While GameCoreScarlett and GameCoreXboxOne were both explicitly set to enabled: 0 in the Native version, the XboxOne platform configuration entry is absent entirely.
what? lgtm 😕
#skip-changelog