core: show data_dir in config and check its asset policy #611

Merged
AdvaitPalve11 merged 1 commit from upstream-pr/611 into main 2026-11-24 08:18:29 +00:00
AdvaitPalve11 commented 2026-11-24 05:35:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by AdvaitPalve11 on 2026-11-24T05:35:57Z.


'victory config' displays game_dir, cache_dir, and test_titles, but omitted data_dir (where saves, persistent local storage, and crashes.log are stored). It also omitted data_dir from the runtime asset-policy check loop in show_config().

Include data_dir in the output and policy check, and add a unit test in victory-core asserting that a data_dir inside the repository is refused.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6575399895 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/611). Originally posted by [AdvaitPalve11](https://github.com/AdvaitPalve11) on 2026-11-24T05:35:57Z. --- 'victory config' displays game_dir, cache_dir, and test_titles, but omitted data_dir (where saves, persistent local storage, and crashes.log are stored). It also omitted data_dir from the runtime asset-policy check loop in show_config(). Include data_dir in the output and policy check, and add a unit test in victory-core asserting that a data_dir inside the repository is refused.
LAKSHYA-cmd-tech commented 2026-11-24 06:53:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T06:02:44Z.

Review: APPROVED


Tested on Windows 11 with Rust 1.98.1 (x86_64-pc-windows-msvc).

  • cargo test -p victory-core: all 9 unit tests passed cleanly, including data_inside_repo_is_refused.
  • cargo test -p victory: all tests passed.
  • cargo xtask policy: 151 files ok.
  • Verified display of data_dir in show_config() and inclusion in policy validation loop.
<!-- greyfinch-sync:Marvisak/VIctory:review:6034438571 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/611#pullrequestreview-6034438571). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T06:02:44Z. **Review:** APPROVED --- Tested on Windows 11 with Rust 1.98.1 (x86_64-pc-windows-msvc). - cargo test -p victory-core: all 9 unit tests passed cleanly, including data_inside_repo_is_refused. - cargo test -p victory: all tests passed. - cargo xtask policy: 151 files ok. - Verified display of data_dir in show_config() and inclusion in policy validation loop.
upstream-sync closed this pull request 2026-11-24 09:05:46 +00:00
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
Marvisak/VIctory!611
No description provided.