Repository navigation
Conversation
This was referenced Nov 23, 2026
Contributor
|
Tested |
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: the executable's host probes (ConsoleMode, Media Foundation) — #7049
Depends on: (none; cross-references the open #6990)
What and why
New page
docs/exe_probes.md(plus itsdocs/README.mdrow) recording two host probes the retail executable makes at startup, measured from the file (the imagedocs/runtime_imports.mdnames, SHA-256 matching):ConsoleModeunderHKCU\Software\Microsoft\Windows NT\CurrentVersion\OEM(RVA0x55deb88): aRegQueryValueExWinto a zeroed 8-byte buffer, then an eleven-constant ladder over the value's first dword (16/32/33/48/49→2, 64→3, 80→4, 88→5, 96→6, 100→7, 104→8, other→0; a failed query answers 1). The ladder is live — the helper's three direct calls test it (one sets a flag toclass != 6, one proceeds only for classes 1, 5, 6, one passes the class on). Class 1 is the plain-PC answer, and the offline answer to this key comes fromLEONIDA_DEVICE_TYPE(runtime: answer the console-type registry key (ConsoleMode) from LEONIDA_DEVICE_TYPE #6990): the value that PR writes must carry a dword this build expects.0x33a41d0):CoInitializeEx(NULL, MTA)retried withAPARTMENTTHREADED | DISABLE_OLE1DDEonRPC_E_CHANGED_MODE(a COM that still fails answers 0), thenMFStartup(MF_VERSION, MFSTARTUP_LITE)—MFSTARTUP_NOSOCKETin the SDK'smfapi.h— answering 3 on success, 1 on failure. All seven imported MF functions are bound to the host; whether the helper runs before the first frame, and what the source resolver then opens, is a--tracequestion.Tested
Static measurement only: Ghidra on the user's local copy of the executable (analysis complete; call-site counts also via
tools/import_call_sites.py), constants verified against Windows SDK 10.0.26100.0 headers (mfapi.h,objbase.h,winerror.h).python -Iover the wholetests/test_docs_*.pysuite plustests/test_i18n_index.py: everything passes except three failures that are already red onmain(duplicateddocs/README.mdrows,docs/embedded_shaders.mdnaming absentspirv-optflags, thegpu_test_results.mdlink) — all filed in #7049. Thedocs/README.mdrow this adds sits two lines below #9669's changed row; a trivial rebase if both land.python -I scripts/check_no_game_data.py docspasses. No game files in the PR, no GPU.AI-assisted: yes (measured by the agent with Ghidra; no game data is committed).
Checklist
docs/design.md, with how it was confirmed. (not applicable)