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 Xbox OS name #1148

Merged
merged 2 commits into from
Feb 11, 2025
Merged

Fix Xbox OS name #1148

merged 2 commits into from
Feb 11, 2025

Conversation

PlasmaDev5
Copy link
Contributor

This change fixes an issue where the os name on Xbox was being reported as Windows.

Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.76%. Comparing base (8040e6b) to head (c6fa487).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1148      +/-   ##
==========================================
+ Coverage   82.74%   82.76%   +0.02%     
==========================================
  Files          53       53              
  Lines        7939     7939              
  Branches     1239     1239              
==========================================
+ Hits         6569     6571       +2     
+ Misses       1260     1258       -2     
  Partials      110      110              

@PlasmaDev5 PlasmaDev5 merged commit 011e705 into master Feb 11, 2025
25 checks passed
@PlasmaDev5 PlasmaDev5 deleted the fix/xbox-os-reporting branch February 11, 2025 08:07
@@ -117,7 +117,7 @@ sentry__get_os_context(void)
# if defined(_GAMING_XBOX_SCARLETT)
# pragma warning(push)
# pragma warning(disable : 4996)
sentry_value_set_by_key(os, "name", sentry_value_new_string("Windows"));
sentry_value_set_by_key(os, "name", sentry_value_new_string("Xbox"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the version number always match?

This also doesn't tell us which model (One, Series X or S etc)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version number should always be accurate its pulled further in that code.

as of X vs S we would need to dig into part of the API we can not use publicly.

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