Skip to content

docs/runtime_imports: name the XPackage identity variables (EGEN-XPKG-IDENTITY-KNOBS, DeepSeek8) - #6141

Open
evilclanker9000 wants to merge 2 commits into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/8-xpkg-identity-knobs
Open

evilclanker9000 wants to merge 2 commits into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/8-xpkg-identity-knobs

Conversation

@evilclanker9000

@evilclanker9000 evilclanker9000 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What and why

docs/runtime_imports.md listed XPackageImpl slots 3 and 4 only as "identifier" and "packaged process" and never named the three variables runtime/shims/xgameruntime.cpp reads to answer them. Without that, a boot that reports a package id nobody recognises, or an XPackageMount that is refused (or cannot find the content package as "installed"), has no documented knob to look at:

  • XPackageGetCurrentProcessPackageIdentifier returns LEONIDA_PACKAGE_ID (32 characters at most, LeonidaPackageIdentifier00000000 otherwise), and XPackageMount refuses that same id as the running game with E_ACCESSDENIED (xgameruntime.cpp:812-847).
  • LEONIDA_CONTENT_PACKAGES="id1=path1;id2=path2" is the only other id XPackageMount resolves, to the folder given; an id in neither is ERROR_NOT_FOUND (:849-873).
  • LEONIDA_PACKAGED=0 makes XPackageIsPackagedProcess answer false; it answers true, as on console (:938-947).

Docs only: one paragraph of prose, no code change.

Test

No GPU and no game files needed. The claims were checked against the lines quoted above, and the docs test set pins the file's shape:

python -I tests/test_docs_links.py          -> OK (rc 0)
python -I tests/test_docs_list_items.py     -> OK (rc 0)
python -I tests/test_docs_repeated_lines.py -> OK (rc 0)
python -I tests/test_docs_repo_paths.py     -> OK (rc 0)
python -I tests/test_docs_env_vars.py       -> OK (rc 0)
python -I tests/test_docs_table_rows.py     -> OK (rc 0)
python -I tests/test_docs_design_rows.py    -> OK (rc 0)

These pass before and after the change: it is a docs correction, so there is nothing for a new test to fail on. The evidence for the text is the xgameruntime.cpp line ranges above.

Notes

The paragraph goes with the other per-class prose (after xgameruntime_store_test, before the offline classes) instead of into the layout table, whose rows stay about thunk slots. It is split over two commits by API: the package-id/mount pair, then the packaged-process query. I did not document LEONIDA_DEVICE_TYPE or LEONIDA_ANALYTICS_FORM here: XSystemGetDeviceType's default is under open PRs (#4821, #3775) and would make a freshly written sentence stale on merge.

EGEN-XPKG-IDENTITY-KNOBS

AI-assisted.

…kage reports and mounts

XPackageGetCurrentProcessPackageIdentifier answers LEONIDA_PACKAGE_ID (32 characters at most, LeonidaPackageIdentifier00000000 otherwise) and XPackageMount refuses that id as the running game with E_ACCESSDENIED. LEONIDA_CONTENT_PACKAGES (id1=path1;id2=path2) is the only other id XPackageMount resolves, to that folder; an id in neither is ERROR_NOT_FOUND. Read from runtime/shims/xgameruntime.cpp:812-873.
…agedProcess answer false

runtime/shims/xgameruntime.cpp:938-947 returns true, as on console, unless the variable parses to 0. The doc listed slot 4 only as 'packaged process'.
@Coderlord

Copy link
Copy Markdown

Code read at 00d6e60 (no build or run). Matches runtime/shims/xgameruntime.cpp: LEONIDA_PACKAGE_ID overrides the default LeonidaPackageIdentifier00000000 (lines 806/816), and XPackageMount gives E_ACCESSDENIED for that id (842-846). LEONIDA_CONTENT_PACKAGES is the id=path map XPackageMount resolves (851), with ERROR_NOT_FOUND for an unknown id (872). LEONIDA_PACKAGED=0 makes XPackageIsPackagedProcess false (939-940).

AI-assisted review.

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.

2 participants