Repository navigation
kernelx: LOAD_LIBRARY_AS_DATAFILE honors the VFS mount and whiteouts - #1780
Luislariosss wants to merge 1 commit into
Conversation
LoadLibraryExW with LOAD_LIBRARY_AS_DATAFILE went to the host copy of a game file even when the VFS had a whiteout for it, and a console path with no source left a path error instead of ERROR_FILE_NOT_FOUND. load_as_data_in resolves through the VFS first: a visible file loads from its source (console path and host path alike), a whited-out one fails with ERROR_FILE_NOT_FOUND before the host fallback is reached. Measured: cargo test -p xcl --lib kernelx at this head: 37 passed, 0 failed, 1 ignored; the new test fails without the fix. Assisted-by: opencode (HY4 Flash Free; Sonnet)
|
NVIDIA test report for Tested
Regression run ( base ( this PR: Not tested: a title loading a whited-out file as a data DLL; the world load; AMD. AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report; I checked it. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
LoadLibraryExWwithLOAD_LIBRARY_AS_DATAFILEreached the host copy of a game file even when the VFS had a whiteout for it, and a console path with no source left a path error instead ofERROR_FILE_NOT_FOUND.What is in it
load_as_datadelegates to a newload_as_data_in(vfs, ...), which resolves through the VFS first: a visible file loads from its source (console path and host path alike); a whited-out file fails withERROR_FILE_NOT_FOUNDbefore the host fallback is reached.load_library_ex_as_data_respects_vfs_mount_and_whiteouts: a DLL in the game folder loads through both the console path and the host path; afterdelete_filewhites it out, both paths fail withERROR_FILE_NOT_FOUND.Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2609.5 throughXCL_DXC_DIR;CARGO_PROFILE_TEST_DEBUG=0.cargo test -p xcl --lib kernelxat the head: 37 passed, 0 failed, 1 ignored. The new test fails without the fix.cargo build --workspacethencargo test --workspace --no-fail-fast -- --test-threads=4): 876 passed, 0 failed, 38 ignored (20 test binaries;SKIPPED:pso_measurement_compiles_an_exact_synthetic_record— cannot disable the driver cache;heap_window_out_of_memory_falls_back_to_the_switch_form— no heap windows).title:line readsretail-title, the folder name is withheld):main (
85e3826, clean tree):head (
0c65342, clean tree):Not tested
AI use