HLE files: wrap missing SetCurrentDirectoryW and Win32/UCRT path twins #2245
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2247"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by Sidlik900 on 2026-11-25T08:46:56Z.
Claimed in https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7157314448.
Summary
arrow_pair so mixed virtual/host path pairs route safely through *W without double-rewriting.
ename, _wrename, _mkdir, _wmkdir, _rmdir, _wrmdir, _access, _waccess, _access_s, _waccess_s, _chmod, _utime64).
Verification
ustfmt --edition 2024 --check crates\victory-hle\src\modules\files.rs
o_dll_planting passed)
o_dll_planting passed)
AI-assisted (Antigravity); synthetic tests only, no game data.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T08:48:39Z.
Review: COMMENTED
HLE files: wrap missing SetCurrentDirectoryW and Win32/UCRT shims (+613). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Broad compatibility shim; Windows-only behavior needs on-hardware validation.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T13:31:31Z.
Automated triage for the maintainers. This adds about 25 path wrappers in
victory-hle/src/modules/files.rs(narrow Win32 twins such asCreateDirectoryAandMoveFileA,SetCurrentDirectoryW,MoveFileW/CopyFileW, and UCRT functions such as_stat64,rename,_mkdirand_access), registered withhle_export!, plus anarrow_pairhelper for mixed virtual/host path pairs. The wrappers follow the existing pattern. Two things keep it from being a merge candidate:SetCurrentDirectory*test re-runs the test binary as a child process (std::process::Command::new(std::env::current_exe())), so it needs the maintainer's decision.The PR also gives no evidence that the title imports these functions. Showing which of them the title actually calls (import names only, no game data) and trimming the rest, and running the working-directory test without spawning a process, would change the verdict.
Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.