Skip to content

Conversation

@bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Dec 3, 2025

#skip-changelog

@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 7982a72

@bitsandfoxes bitsandfoxes changed the title feat: Split Sentry.Unity.Native from console (static) feat: Split Sentry.Unity.Native into desktop and console Dec 3, 2025
GameCoreXboxOne: GameCoreXboxOne
second:
enabled: 1
enabled: 0
Copy link

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)

Fix in Cursor Fix in Web

Copy link
Contributor

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 😕

Comment on lines 285 to 297
#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);
Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor

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 😕

@bitsandfoxes bitsandfoxes merged commit adc6bda into main Dec 4, 2025
35 of 36 checks passed
@bitsandfoxes bitsandfoxes deleted the feat/split-native branch December 4, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants