Check dump folders against the repo guard (#682 fix 3) #1113

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

Imported from fxceless/victory-fork. Originally posted by xyzMikah on 2026-11-25T20:08:24Z.


VICTORY_SHADER_SAVE, VICTORY_DUMP_MATCH and VICTORY_FAIL_DUMP wrote the title's shaders without the repo guard. Each now calls ensure_outside_repo first and skips the dump with a warning if the folder is inside the repo.

Tests added for all three: a folder inside the repo writes nothing, a folder outside writes as before.

cargo clippy and cargo test pass. Windows 11, RTX 5060 Ti, Rust 1.98.1. No game files used.

AI-assisted (Claude).

<!-- greyfinch-sync:fxceless/victory-fork:issue:5498354298 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1116). Originally posted by [xyzMikah](https://github.com/xyzMikah) on 2026-11-25T20:08:24Z. --- VICTORY_SHADER_SAVE, VICTORY_DUMP_MATCH and VICTORY_FAIL_DUMP wrote the title's shaders without the repo guard. Each now calls ensure_outside_repo first and skips the dump with a warning if the folder is inside the repo. Tests added for all three: a folder inside the repo writes nothing, a folder outside writes as before. cargo clippy and cargo test 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!1113
No description provided.