Repository navigation
fs: report a missing source before preparing a console copy destination - #8770
LukeOsland1 wants to merge 4 commits into
Conversation
|
Verified head
AI-assisted. |
|
Tested For this change. Setup. Built with MSVC 14.52 (Visual Studio 18), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.1, Ninja RelWithDebInfo on Windows Server 2025 (no Vulkan driver there), then the same binaries run through
Under Wine the tree is test by test the same as Because the six were built together, there is no per-PR negative control in this run: a regression would have shown as a difference from |
|
Tested c1ecb61 merged onto main 5d74c27 (clean merge) on NVIDIA GeForce RTX 4070, driver 621.24, native Windows 11 Pro 26300, MSVC 14.44.35207, Ninja RelWithDebInfo: pass.
No game data used. AI-assisted (Claude Code). |
|
Test run of this head ( One structural thing to know first: this PR is stacked, and cannot land on its own. With the stack ( Negative control — the parent shim with these tests kept ( and the 21 are all the change's stated claims, nothing incidental: The body says the parent run had 19 failures; I get 21. That is consistent rather than contradictory: 19 + the two source-parent cases the body says were added after that run, both of which also fail on the parent here. Either way the copy-variant failures are the 18 the body predicted, and the remaining three are the source-side lookups. The import table is untouched, so this changes no binding on the retail executable: Not a nit from this PR, but the build warns, and I would rather name it than leave it ambiguous: No game data involved. Tested |
RT-853
Depends on: #7947
Coordination claim · original finding.
A title copying a missing source into GAME: could receive the destination's error, or leave an empty overlay directory behind. On Windows, CopyFileW reports ERROR_FILE_NOT_FOUND for this source whether the target is an existing file with fail-if-exists, a directory, a path under a missing parent, or a new file under an existing parent.
Check the resolved source for a missing file or directory before preparing a console destination. A missing leaf under an overlay-only source parent reports ERROR_FILE_NOT_FOUND. A missing source parent reports ERROR_PATH_NOT_FOUND.
On parent fc6b0f4 the first regression run had 19 failures: 18 wrong error results across the copy variants and one unexpected overlay parent. On c1ecb61 the Windows file_system_test passed all 546 checks, including the two additional source-parent cases. The test goes through CopyFileA/W, CopyFileExA/W, and both CopyFile2 routes, and checks the package contents and overlay afterward.
AI-assisted with Codex. Synthetic temporary files on Windows, CPU only.