Keep DirectStorage trace names only while tracing (#682 fix 4) #1112

Closed
xyzMikah wants to merge 6 commits from upstream-pr/1115 into main
xyzMikah commented 2026-11-25 20:07:14 +00:00 (Migrated from github.com)

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).

<!-- greyfinch-sync:fxceless/victory-fork:issue:5498338211 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1115). Originally posted by [xyzMikah](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!1112
No description provided.