Skip to content

fix(xbox): label Sunshine saves in the Microsoft dashboard - #406

Draft
ReenigneArcher wants to merge 2 commits into
masterfrom
codex/xbox-save-metadata
Draft

ReenigneArcher wants to merge 2 commits into
masterfrom
codex/xbox-save-metadata

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Dec 6, 2026 •

Copy link
Copy Markdown
Member

Description

The Microsoft dashboard lists Sunshine saves as Unknown Title and Corrupted Save because the title and save folders lack dashboard metadata.

Write TitleMeta.xbx and copy the bundled 128×128 TitleImage.xbx and 64×64 SaveImage.xbx into the existing E:\UDATA\53554E53 directory. The shared save icon is rendered from assets/sunshine-logo.svg and appears on the individual save entries. Add SaveMeta.xbx labels for pairing, screenshots, and cached cover art on startup and when the client creates those save directories. This lets existing installations pick up the labels on their next launch.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • Added a regression test for backfilling missing metadata and repairing incomplete metadata in place. It checks the UTF-16LE bytes, preserves existing settings and pairing data, and confirms a second refresh leaves the valid metadata file alone.
  • ctest --test-dir cmake-build-client-ucrt64 --output-on-failure passed all 582 tests.
  • cmake --build cmake-build-xbox-release-ucrt64 --parallel 4 built the Xbox ISO.
  • Decoded the 64×64 XPR0/DXT1 save texture and checked it against the source logo. Verified the Xbox ISO includes the icon and CMake lint passes for the staging recipe.
  • Booted the ISO on a cloned xemu disk and verified the title name and all three save labels. Both title and shared save icons in UDATA matched the packaged textures byte for byte. A visual check in the retail dashboard remains pending.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

@sonarqubecloud

sonarqubecloud Bot commented Dec 6, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
4 New issues

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Dec 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.68293% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.51%. Comparing base (1eeb476) to head (11436c8).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/startup/storage_paths.cpp 92.10% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #406      +/-   ##
==========================================
+ Coverage   89.68%   90.51%   +0.83%     
==========================================
  Files          83       81       -2     
  Lines        9493     9419      -74     
  Branches     4149     4160      +11     
==========================================
+ Hits         8514     8526      +12     
+ Misses        867      779      -88     
- Partials      112      114       +2     
Flag Coverage Δ
Linux-aarch64 74.76% <73.17%> (-0.01%) ⬇️
Linux-x86_64 74.84% <73.17%> (-0.01%) ⬇️
Windows-AMD64 76.81% <73.17%> (-0.02%) ⬇️
Windows-ARM64 76.73% <73.17%> (-0.02%) ⬇️
Xbox-guest-xemu-Linux ?
Xbox-guest-xemu-Windows ?
Xbox-guest-xemu-macOS ?
macOS-arm64 64.67% <36.58%> (-0.14%) ⬇️
macOS-x86_64 64.74% <36.58%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/app/screenshot_library.cpp 96.50% <100.00%> (ø)
src/startup/client_identity_storage.cpp 88.76% <100.00%> (+0.12%) ⬆️
src/startup/cover_art_cache.cpp 93.24% <100.00%> (+0.09%) ⬆️
src/startup/saved_files.cpp 90.29% <ø> (ø)
src/startup/storage_paths.cpp 94.11% <92.10%> (-5.89%) ⬇️

... and 10 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1eeb476...11436c8. Read the comment docs.

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.

1 participant