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

Merged
TanmaySatyam merged 1 commit from upstream-pr/997 into main 2026-11-28 17:58:43 +00:00
TanmaySatyam commented 2026-11-24 16:41:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TanmaySatyam on 2026-11-24T16:41:31Z.


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 (
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5476380615 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/997). Originally posted by [TanmaySatyam](https://github.com/TanmaySatyam) on 2026-11-24T16:41:31Z. --- ### 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 commented 2026-11-25 09:07:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TanmaySatyam on 2026-11-25T09:07:15Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7157901557 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/997#issuecomment-7157901557). Originally posted by [TanmaySatyam](https://github.com/TanmaySatyam) on 2026-11-25T09:07:15Z. --- 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.
MoonEyes commented 2026-11-28 17:58:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T17:58:41Z.


Red/green: On main xgameruntime_test fails 3 checks (XPackage slots 28/35/39 EnumeratePackages, slots 29/36/40 RegisterPackageInstalled and the flat C XPackage exports are missing), and with the PR ctest -R "^xgameruntime$" passes.
Independent tester (OreoFR, RTX 4070, Windows 11): PR head merged with the other PRs of its batch on main c1ecf04ed, full ctest run (485 tests, tests that launch the game excluded): no new failure compared with main.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243433109 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/997#issuecomment-7243433109). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T17:58:41Z. --- Red/green: On main xgameruntime_test fails 3 checks (XPackage slots 28/35/39 EnumeratePackages, slots 29/36/40 RegisterPackageInstalled and the flat C XPackage exports are missing), and with the PR ctest -R "^xgameruntime$" passes. Independent tester (OreoFR, RTX 4070, Windows 11): PR head merged with the other PRs of its batch on main c1ecf04ed, full ctest run (485 tests, tests that launch the game excluded): no new failure compared with main.
OreoFR commented 2026-11-28 21:46:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:46:07Z.


Verified by OreoFR

  • Base: main c1ecf04ed + PR head b88e2b596; green run in a merge package of 9 PRs, no new ctest failure vs main
  • Test: ctest -R ^xgameruntime$
  • Red on main: 3 failures (slots 28/35/39 XPackageEnumeratePackages, slots 29/36/40 XPackageRegisterPackageInstalled, flat C XPackage exports)
  • Green with the PR: OK
  • Verdict: READY
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246257241 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/997#issuecomment-7246257241). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:46:07Z. --- **Verified by OreoFR** - Base: main `c1ecf04ed` + PR head `b88e2b596`; green run in a merge package of 9 PRs, no new ctest failure vs main - Test: `ctest -R ^xgameruntime$` - Red on main: 3 failures (slots 28/35/39 XPackageEnumeratePackages, slots 29/36/40 XPackageRegisterPackageInstalled, flat C XPackage exports) - Green with the PR: OK - Verdict: READY - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!997
No description provided.