Repository navigation
Conversation
…ameInputCreate import The retail executable imports GameInputCreate from GameInput.dll by ordinal 1. The loader looks ordinal imports up as "ProjectLeonida#1", which the shim table did not have, so the import bound to the host's GameInput.dll. On Windows the installed GameInput answers; under Wine it is the builtin stub, the call fails and the title stops on its result. The alias maps ProjectLeonida#1 to the same GameInputCreate, and gameinput_test checks it.
Integrate DirectStorage from upstream PR ItsNotRexed#4348 and adapt memory/connection code from ItsNotRexed#6885 and ItsNotRexed#6981. Reject unsupported audio commands instead of reporting successful processing. Validate with synthetic CPU tests under Wine; game execution remains untested.
|
Full implementation is not ready. This PR adds 15 import bindings, not 15 fully emulated APIs. AcpHalCreate and XApuEnqueueCommand return E_NOTIMPL; audio DSP processing is absent. DirectStorage decompression (zlib/BCPack), swizzle and physical-page requests are unsupported, and texture/DSP imports remain unbound. Six targeted synthetic test suites passed, but gameplay and launchability have not been tested; game code was not executed. This is AI-assisted integration work by FarhatFIN, adapted from the original authors’ PRs #4348, #6885, #6981 and #7216. The PR description and docs/local_imports15.md list the scope and remaining assumptions. |
|
Tested
One note: Not run: no GPU rendering, the full runtime CTest set, or anything with a game copy. AI-assisted: yes (Claude ran the build and tests; results checked by me). |
|
Tested
|
|
Tested
AI-assisted. |
|
✅ Automated security review: CLEAN (commit
Scope: static analysis of added diff lines only; no code was executed. Please review findings manually. |
|
Tested
AI-assisted (Claude Code). |
LaugeM
left a comment
There was a problem hiding this comment.
Only the DirectStorage part (the audio part is reviewed separately). runtime/shims/dstorage.cpp, dstorage_xs_abi.h and runtime/test/dstorage_test.cpp here are #4348's 45c39cf6f plus one change: a LEONIDA_DSTORAGE_TEST_HOOKS before-copy hook (dstorage.cpp, the memory-source path in execute_request, and its declaration in dstorage_xs_abi.h), defined only for dstorage_test in runtime/CMakeLists.txt:263. It fixes the same Wine failure in test_stats_timing that #7343 fixes in the test alone, without test code in the shim.
#4348 is closed and #8461 is its takeover. Merged onto #8461 this branch conflicts add/add in all three DirectStorage files, in runtime/CMakeLists.txt, scripts/build_runtime.ps1 and docs/runtime_imports.md (git merge-tree). I would drop these files from the branch and say Depends on: #8461, with #7343 as the fix for the test.
AI-assisted review (Opus 5.5). Read the diff against main; not built.
This is an incomplete, AI-assisted integration of 15 missing import bindings, not 15 fully emulated APIs or a working game port.
It adapts DirectStorage from #4348, AcpHal memory/context management from #6885, and the XApu connection portion of #6981. It also carries the GameInput ordinal fix from #7216. Credit for those implementations belongs to their original authors. This branch overlaps those PRs; review as an integration proposal, not an independent replacement.
Depends on: #4348, #6885, #6981, #7216 (adapted/carried locally; they appear in this diff).
Behavior and limitations
Validation
Linux, clang-cl 21, xwin SDK 10.0.26100, Wine 10.0; synthetic CPU data:
See docs/local_imports15.md for scope, attribution and remaining work. Coordination claim linked below.
Claimed in the coordination issue: #7694 (comment)