OLD-7383: restore old upstream PR 7383 - retail_boot_chain: the Wine-only gameinput.dll ordinal 1 stop after the TLS stop (PROC-408) #741

Merged
aslan2142 merged 1 commit from upstream-pr/741 into main 2026-11-24 16:38:40 +00:00
aslan2142 commented 2026-11-24 13:15:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T13:15:51Z.


Claimed in the coordination issue as: OLD-7383 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132513462

Restoration of my original pull request, old upstream PR 7383 in ItsNotRexed/Leonida, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at 2d73c242f; updated for #127, which merged the #1 alias since: the "what clears it" cell now names #127 and says which builds still stop here, the link into the old repository is replaced by the measurer's name, and #127's own Wine reproduction is added.

What and why

  • docs/retail_boot_chain.md gets row 4a: under Wine only, the boot stops at GameInput.dll ordinal 1, the executable's by-ordinal GameInputCreate import, right after the TLS stop (row 4).
  • Without a shim for gameinput.dll!#1, the import binds to the host's GameInput.dll. Windows answers; Wine's builtin stub doesn't, and the title reads through a null pointer after the call.
  • What clears it: #127 (the #1 alias in runtime/shims/gameinput.cpp), but only in a gta6rt built with the SDL3 GameInput shim: an installed SDL3 3.2+, -DLEONIDA_SDL3_FETCH=ON (build_runtime.ps1 -FetchSdl3) or -DFETCHCONTENT_SOURCE_DIR_SDL3.
  • A build without SDL3, with -DLEONIDA_SDL3=OFF, or from the cl.exe fallback has no GameInputCreate at all (docs/gameinput.md, Building), so it still stops here under Wine. The row says so, so a Wine user knows which build gets past it.
  • Measured by hcristosm (Wine 9.0, also Proton Experimental) and reproduced in #127 (Wine 11.21 staging). It is numbered 4a so that the Windows stops keep their numbers; a note under the table says so.
  • No addresses, offsets, bytes or strings from the executable: only the export name, the ordinal and the call's outcome.

Tested

  • python -I tests/test_docs_<name>.py for all 12 tests/test_docs_*.py files: all pass on this branch.
  • git diff --check: clean.
  • python -I scripts/check_no_game_data.py docs/retail_boot_chain.md: clean.
  • Docs only; nothing was re-run against the game.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5472863133 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/741). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-24T13:15:51Z. --- Claimed in the coordination issue as: OLD-7383 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132513462 Restoration of my original pull request, old upstream PR 7383 in `ItsNotRexed/Leonida`, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at `2d73c242f`; updated for #127, which merged the `#1` alias since: the "what clears it" cell now names #127 and says which builds still stop here, the link into the old repository is replaced by the measurer's name, and #127's own Wine reproduction is added. ### What and why - `docs/retail_boot_chain.md` gets row 4a: under Wine only, the boot stops at `GameInput.dll` ordinal 1, the executable's by-ordinal `GameInputCreate` import, right after the TLS stop (row 4). - Without a shim for `gameinput.dll!#1`, the import binds to the host's `GameInput.dll`. Windows answers; Wine's builtin stub doesn't, and the title reads through a null pointer after the call. - What clears it: #127 (the `#1` alias in `runtime/shims/gameinput.cpp`), but only in a `gta6rt` built with the SDL3 GameInput shim: an installed SDL3 3.2+, `-DLEONIDA_SDL3_FETCH=ON` (`build_runtime.ps1 -FetchSdl3`) or `-DFETCHCONTENT_SOURCE_DIR_SDL3`. - A build without SDL3, with `-DLEONIDA_SDL3=OFF`, or from the `cl.exe` fallback has no `GameInputCreate` at all (`docs/gameinput.md`, Building), so it still stops here under Wine. The row says so, so a Wine user knows which build gets past it. - Measured by hcristosm (Wine 9.0, also Proton Experimental) and reproduced in #127 (Wine 11.21 staging). It is numbered 4a so that the Windows stops keep their numbers; a note under the table says so. - No addresses, offsets, bytes or strings from the executable: only the export name, the ordinal and the call's outcome. ### Tested - `python -I tests/test_docs_<name>.py` for all 12 `tests/test_docs_*.py` files: all pass on this branch. - `git diff --check`: clean. - `python -I scripts/check_no_game_data.py docs/retail_boot_chain.md`: clean. - Docs only; nothing was re-run against the game. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) AI-assisted (Claude Code, Claude Opus 5.5).
abnalstlll-byte commented 2026-11-24 13:24:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T13:24:16Z.

Review: APPROVED


Audited and verified. Clean-room compliant.

  • Documents retail boot chain stop 4a (Wine-only GameInput.dll ordinal 1 stop after TLS) in docs/retail_boot_chain.md.
  • Correctly numbers the stop as 4a to preserve Windows boot stop continuity.
<!-- greyfinch-sync:ubiquitarianism/leonida:review:6039964905 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/741#pullrequestreview-6039964905). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T13:24:16Z. **Review:** APPROVED --- Audited and verified. Clean-room compliant. - Documents retail boot chain stop 4a (Wine-only GameInput.dll ordinal 1 stop after TLS) in docs/retail_boot_chain.md. - Correctly numbers the stop as 4a to preserve Windows boot stop continuity.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!741
No description provided.