Keep DirectStorage trace names only while tracing (#682 fix 4) #1112
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1115"
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 fxceless/victory-fork. Originally posted by xyzMikah on 2026-11-25T20:07:14Z.
Part of #682 (fix 4).
DirectStorage kept every opened file's name in WALLS_FILES, even with tracing off, and never cleared it. The lookup also took the oldest match, so a reused address could report the wrong file.
Now the name is stored only while VICTORY_WALLS_TRACE is above 0, and the lookup takes the newest entry.
Tests added: a reused address returns the newest name, and the list stays empty with tracing off.
cargo clippy and cargo test -p victory-hle pass. Windows 11, RTX 5060 Ti, Rust 1.98.1. No game files used.
AI-assisted (Claude).
Pull request closed