Skip to content

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

Merged
MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
TanmaySatyam:feat/xpackage-impl4-and-monitors
Nov 28, 2026
Merged

MoonEyes merged 1 commit into
ProjectLeonida:mainfrom
TanmaySatyam:feat/xpackage-impl4-and-monitors

Conversation

@TanmaySatyam

Copy link
Copy Markdown
Contributor

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 (6affb5f):
    • Adds IXPackageImpl4 (

Builds on ProjectLeonida#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.
@TanmaySatyam
TanmaySatyam force-pushed the feat/xpackage-impl4-and-monitors branch from 6affb5f to b88e2b5 Compare November 25, 2026 08:57
@TanmaySatyam

Copy link
Copy Markdown
Contributor Author

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.

@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
@MoonEyes

Copy link
Copy Markdown
Collaborator

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 c1ecf04, full ctest run (485 tests, tests that launch the game excluded): no new failure compared with main.

@MoonEyes
MoonEyes merged commit 1b1bd00 into ProjectLeonida:main Nov 28, 2026
5 of 12 checks passed
@OreoFR

OreoFR commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

3 participants