Repository navigation
Conversation
…ns when gta6rt.exe has no GameInput shim Under Wine there is no host GameInput.dll, so a gta6rt.exe built without the SDL3 GameInput shim fails GameInputCreate and the retail executable stops on its result. The cross-build gave no flag for the shim and CMake only prints a STATUS line when it is left out. cross_configure passes -DLEONIDA_SDL3_FETCH=ON when LEONIDA_SDL3_FETCH is set to a true value (nothing is downloaded unless asked), and cross_build_runtime warns at the end of the stage when the gameinput_test target, which CMake adds only with the shim, is absent. docs/gameinput.md says so. AI-assisted.
|
Tested on Windows 11, CPython 3.12.10, CPU-only, no game files (synthetic inputs only).
Caveats: I could only exercise the pure-Python helpers and the warning path with synthetic build dirs; I did not run a real clang-cl/xwin cross configure or Wine, so the AI-assisted. |
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: #7496 (#7496 (comment), new RT item, no ID).
AI-assisted (Claude).
What and why
On Linux,
make_game.py --stages runtimecross-buildsgta6rt.exewith clang-cl + xwin, and nothing in that pathbuilds the SDL3 GameInput shim:
cross_configurecannot pass-DLEONIDA_SDL3_FETCH=ON, and when CMake finds no SDL3it only prints a STATUS line that the build output buries. On Windows the loader falls back to the host's
GameInput.dll; under Wine there is none, soGameInputCreatefails and the retail executable stops on its result(with #7216's
#1alias too: the alias needs the shim to point at).sdl3_fetch_args():-DLEONIDA_SDL3_FETCH=ONwhenLEONIDA_SDL3_FETCHis1/true/yes/on. Nothing isdownloaded unless asked, as before.
cross_build_runtime()warns at the end of the stage when the build has nogameinput_testtarget (CMake adds itonly with the shim, under any generator), naming
LEONIDA_SDL3_FETCH=1and that anSDL3_DIRhere must be aWindows build of SDL3.
docs/gameinput.mddescribes the Linux path.Related: #7142 (the same stage and Vulkan headers; both add an argument to the same
cmake_configurecall, so one ofthe two will need a one-line rebase) and #7347 (SDL3_FETCH configure under clang-cl where
dumpbinis missing; thismachine configured without it). The Wine-only stop itself is documented by #7368 / #7383.
Tests
python -I tests/test_make_game_platform.py: 51 tests OK, 5 new inCrossBuildGameInputTest(true and falsevalues,
cross_configureforwards the flag and adds nothing without it, the warning with and without the target).python -m compileall -q make_game.py tools testsandpython -I make_game.py --help.cross_configure()into empty build folders on Linux Mint 22.3 (clang-cl 23.1.6, xwin SDK10.0.26100, CMake 3.28, Ninja): without the variable the shim is left out and the stage prints the warning after
building
gta6rt; withLEONIDA_SDL3_FETCH=1SDL3 3.4.20 is fetched and the shim target is there.gta6rt.exewith the shim gets pastGameInputCreate; without it thetitle stops there. AMD RX 7600 XT, RADV (Mesa 25.2.8).
Not checked: Windows (this path runs only off Windows).