feat(xsapi,winrt): add offline-first XSAPI GDK and WinRT activation shims #32

Open
github-bot wants to merge 1 commit from github-bot/gh-32 into main AGit
Owner

@⁠californiaAlmonds on GitHub · 2026-11-21 14:01 UTC · original
californiaAlmonds:feat/xsapi-winrt-services → main · +5002 −0 · 6 files · 1 commits · open

Summary

Implements offline-first clean-room Xbox Services API and Game Core WinRT activation shims (+47 C ABI exports verified in compiled PE64 DLL export tables):

  • Microsoft.Xbox.Services.GDK.C.dll (include/scarlettx/xsapi/xsapi_abi.h, src/shims/xsapi_shim.cpp, 29 Xbl* exports): Lifecycle/context handles, persistent disk-backed achievements (under SCARLETTX_SAVE_ROOT/xsapi/), presence, user profiles with live gamerscore aggregation, and title-managed user statistics wired through xgameruntime's real XAsync* provider pipeline.
  • winrt_xs.dll (include/scarlettx/winrt/winrt_abi.h, src/shims/winrt_shim.cpp, 18 Ro*/Windows* exports): Per-thread refcounted RoInitialize/RoUninitialize, RoGetActivationFactory, RoActivateInstance, RoRegisterActivationFactories/Revoke, full HSTRING runtime (WindowsCreateString/Reference/Duplicate/Delete/CompareStringOrdinal/Concat/Substring), and built-in Xbox WinRT COM classes (AnalyticsInfo, ApplicationData, Gamepad, Language) with zero Windows SDK header collisions.
  • Added comprehensive unit test suite tests/test_xsapi_winrt.cpp.

Verification

  • Built in Release mode (MSVC 2022 + Ninja x64) with 0 errors, 0 warnings.
  • Passed 21/21 non-baseline-failing CTest targets including test_xsapi_winrt.
**@⁠californiaAlmonds** on GitHub · 2026-11-21 14:01 UTC · [original](https://github.com/Freminet/ScarlettX/pull/32) `californiaAlmonds:feat/xsapi-winrt-services` → `main` · +5002 −0 · 6 files · 1 commits · open ## Summary Implements offline-first clean-room Xbox Services API and Game Core WinRT activation shims (`+47` C ABI exports verified in compiled PE64 DLL export tables): - **`Microsoft.Xbox.Services.GDK.C.dll` (`include/scarlettx/xsapi/xsapi_abi.h`, `src/shims/xsapi_shim.cpp`, 29 `Xbl*` exports)**: Lifecycle/context handles, persistent disk-backed achievements (under `SCARLETTX_SAVE_ROOT/xsapi/`), presence, user profiles with live gamerscore aggregation, and title-managed user statistics wired through `xgameruntime`'s real `XAsync*` provider pipeline. - **`winrt_xs.dll` (`include/scarlettx/winrt/winrt_abi.h`, `src/shims/winrt_shim.cpp`, 18 `Ro*`/`Windows*` exports)**: Per-thread refcounted `RoInitialize`/`RoUninitialize`, `RoGetActivationFactory`, `RoActivateInstance`, `RoRegisterActivationFactories`/`Revoke`, full `HSTRING` runtime (`WindowsCreateString`/`Reference`/`Duplicate`/`Delete`/`CompareStringOrdinal`/`Concat`/`Substring`), and built-in Xbox WinRT COM classes (`AnalyticsInfo`, `ApplicationData`, `Gamepad`, `Language`) with zero Windows SDK header collisions. - Added comprehensive unit test suite `tests/test_xsapi_winrt.cpp`. ## Verification - Built in Release mode (MSVC 2022 + Ninja x64) with 0 errors, 0 warnings. - Passed `21/21` non-baseline-failing CTest targets including `test_xsapi_winrt`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:56:28 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/32/head:github-bot/gh-32'
git switch 'github-bot/gh-32'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-32'
git switch 'github-bot/gh-32'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-32'
git switch 'github-bot/gh-32'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-32'
git switch 'main'
git merge --squash 'github-bot/gh-32'
git switch 'main'
git merge --ff-only 'github-bot/gh-32'
git switch 'main'
git merge 'github-bot/gh-32'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.