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

Merged
leonida/mandy
TanmaySatyam merged 1 commit from feat/xpackage-impl4-and-monitors into main 2026-11-28 17:58:43 +00:00

Pull request successfully merged and closed

TanmaySatyam commented 2026-11-24 16:41:31 +00:00

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 (
### 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

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.

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

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.

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

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).

**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 description provided.