xgameruntime: XPackage installation monitor, enumeration, and IXPackageImpl4 (OLD-9900) #997

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

@⁠TanmaySatyam on GitHub · 2026-11-24 16:41 UTC · original
TanmaySatyam:feat/xpackage-impl4-and-monitors → main · +154 −21 · 2 files · 1 commits · open

Summary

Claims and completes OLD-9900 (Draft PR #166 by @⁠tedin7, original authorship preserved in the first commit) and adds IXPackageImpl4 support plus XPackage vtable slots 35 & 39:

  1. Commit 1 (d1d1336d, authored by @⁠tedin7): Rebases old-pr/9900 cleanly onto main — implements offline XPackageEnumeratePackages (export + vtable slot 28), XPackageCreateInstallationMonitor (export + slot 5), XPackageCloseInstallationMonitorHandle (slot 6), XPackageRegisterPackageInstalled (slot 29), XPackageRegisterInstallationProgressChanged (slot 9), and unit tests in xgameruntime_test.cpp.
  2. Commit 2 (6affb5f5e):
    • Adds IXPackageImpl4 (
**@⁠TanmaySatyam** on GitHub · 2026-11-24 16:41 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/997) `TanmaySatyam:feat/xpackage-impl4-and-monitors` → `main` · +154 −21 · 2 files · 1 commits · open ### Summary Claims and completes **OLD-9900** (Draft PR #166 by @⁠tedin7, original authorship preserved in the first commit) and adds **IXPackageImpl4** support plus **XPackage** vtable slots 35 & 39: 1. **Commit 1 (d1d1336d, authored by @⁠tedin7):** Rebases old-pr/9900 cleanly onto main — implements offline XPackageEnumeratePackages (export + vtable slot 28), XPackageCreateInstallationMonitor (export + slot 5), XPackageCloseInstallationMonitorHandle (slot 6), XPackageRegisterPackageInstalled (slot 29), XPackageRegisterInstallationProgressChanged (slot 9), and unit tests in xgameruntime_test.cpp. 2. **Commit 2 (6affb5f5e):** - Adds IXPackageImpl4 (
Builds on #984 (which landed IXPackageImpl4, slots 5-10, 22, and 39): wires the remaining IXPackageImpl 1-3 EnumeratePackages (slots 28/35) and RegisterPackageInstalled (slots 29/36/40) vtable entries to the offline implementation, adds the nine flat C XPackage* exports in SHIM_TABLE(xgameruntime) forwarding to the same handlers, and adds unit tests in xgameruntime_test.cpp.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:32:38 +00:00
Author
Owner

@⁠TanmaySatyam on GitHub · 2026-11-25 09:07 UTC · original

Rebased and re-scoped cleanly onto main (3f81d46ac) now that #984 has landed IXPackageImpl4, slots 5-10, slot 22, and slot 39:

  • Keeps main's offline XPackage semantics intact (including slot 39 returning S_OK with 0 callbacks).
  • Wires the remaining unimplemented IXPackageImpl 1-3 vtable slots: 28/35 (EnumeratePackages) to pkg_enumerate_packages, and 29/36/40 (RegisterPackageInstalled) to pkg_register_installed (returning distinct non-zero tokens accepted by slot 22, with no offline callbacks).
  • Exposes the 9 flat C XPackage* exports (XPackageEnumeratePackages, XPackageCreateInstallationMonitor, XPackageCloseInstallationMonitorHandle, XPackageGetInstallationProgress, XPackageUpdateInstallationMonitor, XPackageRegisterInstallationProgressChanged, XPackageUnregisterInstallationProgressChanged, XPackageRegisterPackageInstalled, XPackageUnregisterPackageInstalled) in SHIM_TABLE(xgameruntime) forwarding directly to the same offline handlers.
  • Tested locally on Windows 11 (ctest -R ^xgameruntime$ -> 1/1 passed) and python -I scripts/check_no_game_data.py (exit 0).

AI-assisted.

**@⁠TanmaySatyam** on GitHub · 2026-11-25 09:07 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/997#issuecomment-7157901557) Rebased and re-scoped cleanly onto `main` (`3f81d46ac`) now that #984 has landed `IXPackageImpl4`, slots 5-10, slot 22, and slot 39: - Keeps `main`'s offline `XPackage` semantics intact (including slot 39 returning `S_OK` with 0 callbacks). - Wires the remaining unimplemented `IXPackageImpl 1-3` vtable slots: `28`/`35` (`EnumeratePackages`) to `pkg_enumerate_packages`, and `29`/`36`/`40` (`RegisterPackageInstalled`) to `pkg_register_installed` (returning distinct non-zero tokens accepted by slot 22, with no offline callbacks). - Exposes the 9 flat C `XPackage*` exports (`XPackageEnumeratePackages`, `XPackageCreateInstallationMonitor`, `XPackageCloseInstallationMonitorHandle`, `XPackageGetInstallationProgress`, `XPackageUpdateInstallationMonitor`, `XPackageRegisterInstallationProgressChanged`, `XPackageUnregisterInstallationProgressChanged`, `XPackageRegisterPackageInstalled`, `XPackageUnregisterPackageInstalled`) in `SHIM_TABLE(xgameruntime)` forwarding directly to the same offline handlers. - Tested locally on Windows 11 (`ctest -R ^xgameruntime$` -> `1/1 passed`) and `python -I scripts/check_no_game_data.py` (exit 0). AI-assisted.
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/997/head:github-bot/gh-997'
git switch 'github-bot/gh-997'

Merge

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