Skip to content

docs: how the IDL and xgameruntime-docs layouts of the runtime classes compare - #3670

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
Dom-in:docs-runtime-layout-sources
Nov 23, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
Dom-in:docs-runtime-layout-sources

Conversation

@Dom-in

@Dom-in Dom-in commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Claim: #3574 (comment)

Docs only. Several open runtime-class PRs take their slot layouts from one of two sources: xgameruntime-docs (#3363, #3471, #3476, #3550) or the LGPL Wine IDL in xodus-gaming/xgameruntime's include/*.idl (#3408, #3505). I compared the two, class by class:

class docs' _unknown_ slots IDL
XGameSaveImpl (30 methods), XGameImpl (3), XStoreImpl (81) none matches exactly
XErrorImpl slot 3 (measured as XErrorReport from XCurl) keeps it as HRESULT __PADDING__(), so it lines up
XUserImpl slot 15 no entry: slots 15-48 of the IDL are the docs' 16-49
XDisplayImpl slot 3 no entry: the IDL's only method is at 3, the docs' at 4

So the IDL sometimes drops a slot nobody has named, and every method after it then sits one slot early. The paragraph added to docs/runtime_imports.md, next to the measured layout table, says to take an IDL layout only where it matches the docs' slot count. I've noted the same on #3363, #3471 and #3476, and corrected my own earlier comments on #3471 and #3476, which had leaned on the IDL.

Tested: pytest tests/test_docs_links.py 5 passed. The comparison is a script over the two public sources; nothing from the package is involved.

AI-assisted (Claude Code).

🤖 Generated with Claude Code

…s compare

The Wine-derived IDL matches xgameruntime-docs exactly where the docs list no
unknown slot (XGameSave, XGame, XStore), keeps one unknown as __PADDING__
(XError), and drops others (XUser slot 15, XDisplay slot 3), which shifts every
later method. Note it next to the measured layout table, so a layout taken from
the IDL is checked against the docs' slot count first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@sds-228 sds-228 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review of 6583463: no issues found. The added comparison paragraph is coherent and introduces no unintended data or path material.

AI-assisted (OpenCode).

@memorypressure

Copy link
Copy Markdown

Reviewed on Linux: docs-only paragraph; it is consistent with the slot table above it (which follows the docs' layout, unknown slots included), and the "take a layout from the IDL only where it matches the docs' slot count" rule is the right conservative read given the docs are the measured source here. The class-by-class IDL comparison itself is external to this repo. AI-assisted: yes.

@ItsNotRexed
ItsNotRexed merged commit 4d0b172 into ItsNotRexed:main Nov 23, 2026
2 checks passed
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.

4 participants