Repository navigation
Conversation
… MicrosoftGame.Config microsoft_gameconfig.bin is a regf 1.3 registry hive that the packaging tool compiles from MicrosoftGame.Config. tools/gameconfig_hive.py reads it with the standard library (checksum, cell bounds, cycle and depth guards, lf/lh/li/ri lists, inline data, UTF-16 names): `dump` prints the tree, `check` compares every hive value with the config text it comes from (exit 0/1/2). docs/package_metadata.md records the launch files no other note covered: the hive layout and config-to-hive mapping, the chunk layout's Launch marker, the unread VirtualMachine settings, Bink2Scarlett's thread placement through the processtopology-obsolete API set, and Catalog000.bin / resources.pri identified, not decoded. tests/test_gameconfig_hive.py builds its hives by hand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
The doc's other counts, recounted independently (not with the PR's tool):
Wording note: "Thread placement in the shipped DLLs" says "(the executable is not in the package)". On my copy it is: Counts, types and API names only. AI-assisted (Claude Code). |
|
Tested a84d9db on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
AI-assisted. No game files in this PR (measured on my own 1.0.2.1 copy; counts and types only).
Claimed in the coordination issue as: #7049 (comment)
Depends on: none.
What and why
microsoft_gameconfig.binsits next toMicrosoftGame.Configin every package folder, and no note or tool covered it. It is a Windows registry hive (regf1.3) that the packaging tool compiles from the config. This PR adds:tools/gameconfig_hive.py(standard library only):dump <hive> [--json]prints the keys and values.check <game folder>compares each hive value with the config element or attribute it comes from. It handles hex ids stored as DWORD/QWORD,true/falsestored as 0/1, andLanguagesstored as one;-joined string.lf/lh/li/rilists, inline data and UTF-16 names.tests/test_gameconfig_hive.py: 16 tests on hives and configs built by hand, so no game files are needed.docs/package_metadata.md(indexed indocs/README.md), covering the package's small files no other note described:GameConfigRegRWVersionandAdvancedUserModel.Marker="Launch"is on the last chunk, which holds justUpdate.alignmentchunk.VirtualMachine:SMTEnabledis true and both title-memory modes areAdvanced. Nothing underruntime/reads either.Bink2Scarlett.dllis the only packaged module that places its own threads. It sets an ideal processor and optionally hard-pins with1 << core, ignores both return values, and importsSetThreadAffinityMaskthroughapi-ms-win-core-processtopology-obsolete-l1-1-0.dll, which the registration set of the closed gta6rt: title CPU affinity for mapped images #2632 did not cover.Catalog000.binis a PE32+ with subsystem 17 (IMAGE_SUBSYSTEM_XBOX_CODE_CATALOG) and no data directories. It is identified and deliberately left undecoded (no protection work).resources.priis identified as amrm_pri2PRI with five sections.No value that identifies the title is quoted. The doc gives counts and types; the tool prints values locally.
Tested
Windows 11 Pro (26200), Python 3.14. No GPU is involved (Python tools and docs only).
python -I tests/test_gameconfig_hive.py: 16 tests, OK.tests/test_docs_*.py(all 11),tests/test_ci_registration.py,python -m compileall -q make_game.py tools tests, andpython -I scripts/check_no_game_data.pyon the four changed files: OK.tests/test_text_write_line_endings.pyfails ontools/f64_omod_probe.py:268andtools/leonida_tui.py:753, on this branch and on unmodifiedmainae12372alike. This PR doesn't touch either file.git diff --check: clean.python -I tools/gameconfig_hive.py check <package>on a local 1.0.2.1 package (SHA-256 of the five files matchesgame/xbox-1.0.2.1.json):27 match, 0 differs, 2 hive only, 0 config only, exit 0.AI-assisted: yes. Written by Claude Code (Claude Opus 5.5) together with neeshz, who supplied the package, picked the direction and reviewed it.
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code