Repository navigation
runtime/README.md: document the five xgameruntime environment overrides, with a docs test - #3686
Merged
ItsNotRexed merged 2 commits intoNov 23, 2026
Conversation
…es, with a docs test LEONIDA_DEVICE_TYPE, LEONIDA_ANALYTICS_FORM, LEONIDA_PACKAGE_ID, LEONIDA_CONTENT_PACKAGES and LEONIDA_PACKAGED are read by runtime/shims/xgameruntime.cpp and were named in no document, while the README documents the runtime's other variables one by one. Adds a table read from the code (default, accepted values, which call each one changes) and tests/test_docs_env_vars.py: every LEONIDA_*/GTA6RT_* variable that appears as a string literal in runtime/src, runtime/shims or make_game.py is named in some tracked Markdown file, except the two the runtime sets for itself. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…haracters is ERROR_INSUFFICIENT_BUFFER Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
|
Independent CPU review at
AI-assisted. |
|
Tested 8e5b781 on Windows 11, Python 3.12.6: pass
Since the earlier check covered the test and its negative control, I read the new README table against
I found no row that disagrees with the code. No blocker. AI-assisted (Claude Code); no game files or GPU. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: new PROC item, claim in #3574 (no ID yet)
What and why
runtime/shims/xgameruntime.cppreads five environment variables that no document names:LEONIDA_DEVICE_TYPE(line 397),LEONIDA_ANALYTICS_FORM(546),LEONIDA_PACKAGE_ID(566, 592),LEONIDA_CONTENT_PACKAGES(601) andLEONIDA_PACKAGED(692).git grepfinds none of them in any.md, whileruntime/README.mddocuments the runtime's other variables one by one. The source calls the first "for trying other code paths on day one", which is when someone will look for it.The change
runtime/README.md, under "Shims": a table of the five, each with its default, the values it accepts and which call it changes, read from the code. For exampleLEONIDA_DEVICE_TYPEtakes 0..8 (theXSystemDeviceTypevalues, listed), a number outside that range is ignored, and6also changes theformthatXSystemGetAnalyticsInforeports.tests/test_docs_env_vars.py(standard library; reads sources and Markdown): everyLEONIDA_*/GTA6RT_*name that appears as a string literal inruntime/src,runtime/shimsormake_game.pyis written in some tracked.mdfile. Two names are excepted, and the test checks they are still read:LEONIDA_BASE_RESERVEDandLEONIDA_RT_ENV_INIT, which the runtime sets or looks up for itself.What this means for other pull requests: once this is merged, a pull request that adds a
LEONIDA_*/GTA6RT_*literal underruntime/src,runtime/shimsormake_game.pywithout naming it in a.mdfile fails this test. That is the point of it. The open pull requests I found that add one already document it in the same change (LEONIDA_SAVE_DIRin #3505,LEONIDA_GAMERTAGin #3363).No behaviour changes; no code touched.
Tested
Windows 11, Python 3.13, on
mainf847748c:python -I tests/test_docs_env_vars.py: 4 tests OK. Withmain'sruntime/README.md: 1 failure, naming the five variables with the line each is read on.python -Iontests/test_docs_links.py,test_docs_list_items.py,test_docs_repo_paths.py,test_docs_design_rows.py,test_ci_registration.py,test_text_write_line_endings.py: OK.runtime/test/xgameruntime_test.cppalready exercisesLEONIDA_PACKAGE_ID,LEONIDA_CONTENT_PACKAGESandLEONIDA_PACKAGED=0, and the other two overrides have no test.Trial merges with the five open pull requests that touch
runtime/README.md(#3321, #3351, #3488, #3601, #3671) are clean. An independent run by a second session reproduced the counts and read each table row against the source before this was opened.No game files, no GPU.
AI-assisted (Claude Code).
🤖 Generated with Claude Code