Skip to content

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

Open
TanmaySatyam wants to merge 1 commit into
ProjectLeonida:mainfrom
TanmaySatyam:feat/xpackage-impl4-and-monitors
Open

TanmaySatyam wants to merge 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
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.

1 participant