Repository navigation
Conversation
Desamodeth
left a comment
There was a problem hiding this comment.
Tested c91c0ca on Windows 11 x64 with the same synthetic EXE linked against Windows SDK 10.0.26100.0 OneCore_apiset.lib. dumpbin confirmed all seven imports under the three API sets. On main (f847748), creating the GAME: profile directory failed with ERROR_INVALID_NAME. On the PR all seven bound to shims: the guest backed up its original settings, copied a template, and replaced the settings. A fresh gta6rt process read the updated bytes. I verified the overlay files and the original package bytes after both runs. The file_system CTest also passed all 142 checks. No game files or GPU used. AI-assisted.
|
Tested c91c0ca on Windows 11, MSVC 19.42 (VS 2022 Build Tools), Windows SDK 10.0.28000.0, NVIDIA RTX 3080 Ti, driver 616.56: pass
The import table in the description, checked independently with One note, not a blocker: AI-assisted (Claude Code); synthetic fixtures only, no game files. |
|
Tested
AI-assisted (Claude Code). |
…tle imports them by The loader matches an import by the exact DLL name. The file shims were registered under kernel32, kernelbase and three api-ms-win-core-file sets, but the SDK's umbrella libraries (OneCore_apiset.lib and WindowsApp.lib, 10.0.26100, x64) bind seven of them elsewhere: MoveFileA/W, MoveFileExA and CopyFileA to api-ms-win-core-kernel32-legacy-l1-1-0, CopyFileW to api-ms-win-core-file-l2-1-2, CopyFileExA and CreateDirectoryExA to api-ms-win-core-file-ansi-l2-1-0. A title linked that way had those seven bound to the host, where a GAME: path fails and a write misses the overlay. file_system_test: each of the seven pairs resolves to the shim its kernel32 name does, and a MoveFileW through the legacy set lands in the overlay. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…nel32-legacy set Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
c91c0ca to
03a95be
Compare
|
Rebased onto On this head: |
|
Tested 03a95be (merged onto main aa2988c) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0, Windows SDK 10.0.26100.0: pass
AI-assisted (Claude). |
Claim (new RT item, no ID assigned yet)
AI-assisted (Claude Code). I ran everything under "Tested" on Windows.
Problem
The loader binds an import by the exact DLL name in the title's import table.
runtime/shims/file_system.cppregisters its 33 file functions underkernel32.dll,kernelbase.dlland three API sets (api-ms-win-core-file-l1-1-0,-l1-2-0,-l2-1-0).A title linked against the SDK's API-set umbrella libraries imports seven of them from three other sets. Read from the x64 import members of
OneCore_apiset.libandWindowsApp.libin Windows SDK 10.0.26100 (a script of my own that walks the archive's short import records):MoveFileA,MoveFileW,MoveFileExA,CopyFileAapi-ms-win-core-kernel32-legacy-l1-1-0.dllCopyFileWapi-ms-win-core-file-l2-1-2.dllCopyFileExA,CreateDirectoryExAapi-ms-win-core-file-ansi-l2-1-0.dllThe other 26 bind to the three sets already registered.
mincore.libbindsCopyFileWthe same way and does not carry the six ANSI/legacy ones;OneCore.libbinds everything tokernel32.dll.So for such a title those seven were bound to the host: a
GAME:path fails there, and a move or copy onto a host path the title built itself skips the overlay. It is the rename of a save or a config file that meets this first.Change
Three more
FILE_API(...)rows, for the three sets in the table, and one clause indocs/runtime_imports.md, whose sentence named only theapi-ms-win-core-file-*sets (a second, docs-only commit; #3063 edits the lines next to it). The macro registers all 33 names under each, as it does for the existing sets; a name a set does not really export is never imported from it, so the extra entries are inert.Not done: other version suffixes of these sets (
-l2-1-1,-l1-1-1, ...). The rows are the ones measured in this SDK;gta6rt --dry-runon the executable will show any other.Test
file_system_testchecks that each of the seven (DLL, name) pairs resolves through the registry to the same shim as itskernel32.dllname, and calls one end to end:MoveFileWresolved through the legacy set moves aGAME:file into the overlay and leaves the package file alone.Tested
Windows 11 (build 26200), MSVC 19.44.35222, Visual Studio's CMake and
ctest3.31.6 with Ninja, RelWithDebInfo, built byscripts/build_runtime.ps1. Basef847748c(main).file_system_testwith the new checks onmain'sfile_system.cpp: 8 failures of 142 (the seven pairs do not resolve, and the move cannot be called). With the change: 142 checks, 0 failures.ctest --test-dir runtime/build -C RelWithDebInfowithLEONIDA_GAME_DIRset: 140 run, 134 passed, 6 skipped, 0 failed (gameinputis disabled, no SDL3 here). NVIDIA GeForce RTX 4090, driver 32.0.16.2114, for the Vulkan tests in that run; this change needs no GPU.Overlap: #3602, #3651, #3511, #3532 and #3063 also edit
file_system.cppor its test. This adds lines at the end of the shim table, which none of them touches, and one block at the end of the test. My own #3651 adds a block at that same spot, so whichever of the two lands second needs a trivial rebase, which I will do.🤖 Generated with Claude Code