Repository navigation
Conversation
…-dev#577) For G:\ the relative path is empty, so collect_game_entries searched the bare overlay and game folder paths and returned those folders as entries. Native FindFirstFileExW on a drive root fails with ERROR_FILE_NOT_FOUND; the new test checks that on the host drive and that the mount root now does the same, while G:\* still lists the game folder's contents. Item 3 of xcl-dev#577. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Test report on Tested
Not tested
AI use
|
|
Test run of Tested
Review: Duplicate of #763 (open), same three-line fix; this one's test is the stronger of the two, since it checks against what a native drive root actually returns. Only one should land. The fix itself is right. Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
You landed three minutes ahead of my #763 (now closed as duplicate — same guard; your live-native comparison is the better test). Two things worth carrying to your PR:
|
|
Thanks @pickles976, both useful. @ryosen0, if you have time, could you run the |
Test report: #761 under Wine (Linux)The new test compares XCL with the host's Setup
Results (lib test binary under Wine,
Not tested
AI use: Claude Code (Claude Opus 5.5) built the tests, ran them on the machine above and wrote this report. The counts are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one. |
|
Hardware check of Tested
Regression run PR ( Not tested
AI use
|
|
Thanks @eizispark: both blocks are now in Regression run, credited. Thanks also to everyone who ran the tests (@milas6669, @JoaoPauluu, @MesshM). |
Empirical test report (ea6fcab)Verified PR #761 at Hardware / environment
Commands and results
Observed behavior
Not tested
AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
FindFirstFile("G:\\")on a mount root returned the host's overlay and game folders as directory entries. ForG:\the relative path is empty, socollect_game_entriessearched the bare folder paths and listed the folders themselves. A native drive root has no entry of its own:FindFirstFileExW("C:\\")fails withERROR_FILE_NOT_FOUND. The mount root now fails the same way.G:\*is unchanged.Part of #577 (item 3). Items 1 and 2 are #644 and #618. This PR touches neither path, and
git merge-treeshows no conflicts with either head.What is in it
crates/xcl/src/vfs_hooks.rs:collect_game_entriesreturnsERROR_FILE_NOT_FOUNDfor an empty relative path.crates/xcl/src/vfs_hooks.rs: testfind_first_on_mount_root_matches_native_drive_root. It calls nativeFindFirstFileExWon the host drive root of the temp fixture to get the reference error code. It then checks thatG:\gives the same code and thatG:\*still listsdata. The test uses synthetic temp folders and no game files.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4on ea6fcab: 702 passed, 0 failed, 41 ignoredgpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64)main(64b3f35) without the fix (left: None, right: Some(2)) and passes with it. Its native reference assertion passed on this machine, so Win32 returnsERROR_FILE_NOT_FOUND(2) for a drive root.Regression run
Run by @eizispark on an AMD Radeon RX 9070 XT (posted in this PR's comments; we have no retail title here).
main:
PR:
Not tested
FindFirstFile("D:\\Games\\Title"), no wildcard) also classifies as the empty relative path. It now fails withERROR_FILE_NOT_FOUND, but native Win32 would return one entry for the folder. Titles reach the game folder throughG:\, so this PR follows the console-root semantics. Not checked whether any title searches the host folder this way.mainand on this branch,vfs::tests::truncate_existing_validation_errorsfails when run alone (cargo test -p xcl --lib truncate_existing_validation_errors:left: 127, right: 5atvfs.rs:970). It passes in the full run: the firstunder_wine()call (GetProcAddressofwine_get_version) setsERROR_PROC_NOT_FOUND(127) betweenCreateFileWandGetLastError, and in the full run an earlier test has already cached it. Tests: capture the truncate error before checking for Wine #633 fixes it; this PR does not change it.AI use
🤖 Generated with Claude Code