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

Manually merged
github merged 1 commit from gh-pr/741/head into gh-pr/741/base 2026-11-26 09:18:56 +00:00
Owner

@⁠aslan2142 on GitHub · 2026-11-24 13:15 UTC · original
aslan2142:proc408-gameinput-stop → main · +4 −0 · 1 files · 1 commits · merged 2026-11-24 16:38 UTC

Claimed in the coordination issue as: OLD-7383 #14

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).

**@⁠aslan2142** on GitHub · 2026-11-24 13:15 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/741) `aslan2142:proc408-gameinput-stop` → `main` · +4 −0 · 1 files · 1 commits · merged 2026-11-24 16:38 UTC Claimed in the coordination issue as: OLD-7383 https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 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).
Under Wine the retail boot stops at GameInput.dll ordinal 1 (GameInputCreate)
right after stop 4: without the SDL3-built GameInput shim and its #1 alias, the
import binds to Wine's builtin stub. Measured by hcristosm in the old
coordination issue. Added as row 4a so the Windows stops keep their numbers.

Restored from old upstream PR 7383 and updated for #127, which merged the #1
alias (old upstream PR 7216's change): the "what clears it" cell now names #127
and says which builds still stop here (no SDL3, LEONIDA_SDL3=OFF, the cl.exe
fallback), and the link into the old repository is replaced by the measurer's
name and #127's Wine 11.21 reproduction.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:18:56 +00:00
github manually merged commit c868b1ccfd into gh-pr/741/base 2026-11-26 09:18:56 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 13:24 UTC · original · approved these changes

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.
**@⁠abnalstlll-byte** on GitHub · 2026-11-24 13:24 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/741#pullrequestreview-6039964905) · **approved these changes** 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.