Repository navigation
Conversation
gameinput.lib imports GameInputCreate from GameInput.dll by ordinal 1 with no name. The shim was registered by name only, so the loader's "ItsNotRexed#1" lookup found nothing and bound the host GameInput.dll instead. Register the ordinal beside the name. run_tiny_gameinput runs a stand-in that imports it by ordinal only under gta6rt --run and checks the loader's report binds it to the shim. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…escape "\." is not an escape CMake knows in a quoted argument. CMake 3.31 in script mode warns and leaves the whole string unprocessed, so "\n" stayed literal too and the binding line never matched; CMake 4 accepted it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Pushed |
|
Windows + GPU check: AMD Radeon RX 9070 (RDNA4), Windows 11, MSVC Release, Vulkan SDK 1.4.363. Tested head 016f7b5 merged onto AI-assisted (Claude Code); runs on my machine. |
|
Tested 016f7b5 on Windows 11 24H2 (26100), MSVC 19.44 RelWithDebInfo + Ninja, NVIDIA GeForce RTX 3070 (driver 617.42): pass, with a negative control.
No game files. AI-assisted (Claude). |
Desamodeth
left a comment
There was a problem hiding this comment.
Verified 016f7b5 on Windows 11 x64 with an EXE built against the installed Windows SDK 10.0.26100.0 GameInput.h and GameInput.lib. dumpbin showed its only GameInput.dll import was ordinal 1. With SDL3 enabled on both builds, gta6rt --dry-run on f847748 reported 6 shim / 42 host imports; the PR reported 7 / 41 and explicitly listed GameInput.dll!#1 under shim. Under --run with the virtual keyboard pad enabled, the same guest created IGameInput, observed its timestamp advance, and read a GameInputGamepadState through the SDK interface. Both targeted CTests passed (gameinput: 277 checks; run_tiny_gameinput). Synthetic guest, no game files. AI-assisted.
|
Verified statically on Linux: merges cleanly into current main. The new ctest is Windows-gated (ordinal-import stub + loader run) and was not executed here. The [.] literal-dot fix in check_loaded_gameinput.cmake is the right CMake regex idiom, the fixture imports GameInputCreate by ordinal via a NONAME .def, and the docs row honestly marks the executable-side import as a hypothesis pending the real binary. No game data. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
Claim: #3232 (comment) (new RT item)
What and why
A title built against
gameinput.libimportsGameInputCreatefromGameInput.dllby ordinal 1, with no name. The GameInput shim (#680) was registered by name only.Loader::resolvelooks an ordinal import up as#<n>, found nothing forgameinput.dll!#1, and bound the host'sGameInput.dllby ordinal: Xbox pads only, none of the SDL3 mapping, and no shim at all on a machine without that DLL.runtime/shims/gameinput.cpp: registergameinput.dll!#1beside the name. One table row.run_tiny_gameinput(new ctest):tiny_gameinput.exeimportsGameInputCreateby ordinal only (import library fromgameinput_stub.def,@1 NONAME), runs undergta6rt --run, andcheck_loaded_gameinput.cmakerequires the loader's report to sayshim GameInput.dll!#1. The stub DLL goes to a folder the loader does not search.gameinput_test: the registry answers#1with the same function.docs/gameinput.md: "The import is by ordinal", with what was measured and what is still a hypothesis.How the ordinal was confirmed
um/x64/gameinput.lib: one import record,GameInput.dll,GameInputCreate, ordinal 1, name type "by ordinal" (read with a standard-library parser of the archive's short import records).System32\GameInput.dllandGameInputRedist.dllon Windows 11 26200: export ordinal 1 isGameInputCreate.docs/research/gdk-titles.mdatb883d2d, reports the same shape for a Series-built GDK sample:GameInput.dllordinal 1 and nothing else from that module. Only that fact was taken; none of its code was read for this change. I could not reproduce it: building a Series sample needs the GDK's Xbox extensions.That the game's executable imports it this way is a hypothesis until the executable is read.
Tested
Windows 11 26200, MSVC 19.44 (VS 2022), Ninja, RelWithDebInfo,
-DLEONIDA_SDL3_FETCH=ON, NVIDIA GeForce RTX 4090, driver 621.14. Basef847748c.ctest --test-dir runtime/build(CMake 4.4.3): 142 tests, 134 passed, 8 skipped (shader_library_corpus,bink_decode,fsr_dispatch,bvh_builder,bink_audio,vk_sync_validation,d3d12_rgb9e5_rtv,d3d12_first_light), 0 failed.gameinput(277 checks) andrun_tiny_gameinputpass.check_loaded_gameinput.cmakerun with both CMake 4.4.3 and Visual Studio 2022's bundled CMake 3.31.6 (whatscripts/build_runtime.ps1uses): passes with both since the second commit. The first commit's regex used\., which CMake 3.31 rejects as an escape in script mode, so the test failed there.gameinputreports "277 checks, 1 failures" andrun_tiny_gameinputfails with "GameInput.dll ordinal 1 was not bound to the shim" (the loader's report has noGameInput.dllline undershim).python -I tests/test_ctest_registration.py: 4 tests OK.The new ctest is only configured where the shim is built (SDL3 available), like
gameinput. The Windows CI job builds without SDL3, so it does not run there.Relation to open PRs: #2490 documents the missing
#1and classifies it as HRESULT but does not register it; with its host-binding fix an ordinal GameInput import would become unimplemented instead of host-bound, so this row matters more after it. #2420 tests the host path when no shim is built and is unchanged by this.AI-assisted (Claude Code).
🤖 Generated with Claude Code