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

Closed
opened 2026-11-26 20:19:01 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/741
Author: @aslan2142
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: proc408-gameinput-stop


📝 Commits (1)

  • c868b1c retail_boot_chain: the Wine-only gameinput.dll ordinal 1 stop after the TLS stop (PROC-408)

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 docs/retail_boot_chain.md (+4 -0)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/741 **Author:** [@aslan2142](https://github.com/aslan2142) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `proc408-gameinput-stop` --- ### 📝 Commits (1) - [`c868b1c`](https://github.com/ubiquitarianism/leonida/commit/c868b1ccfd49fc8244de16f848622125bf248831) retail_boot_chain: the Wine-only gameinput.dll ordinal 1 stop after the TLS stop (PROC-408) ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/retail_boot_chain.md` (+4 -0) </details> ### 📄 Description 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:01 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#778
No description provided.