[Audit] Verify complete Xbox Series virtual path translation to Windows & save/data path edge cases #2621

Open
opened 2026-11-29 15:08:48 +00:00 by github-bot · 2 comments
Owner

@⁠hyperland956-lgtm on GitHub · 2026-11-29 15:03 UTC · original

Summary

Core saves (%LOCALAPPDATA%\victory\data), logs (%LOCALAPPDATA%\victory\logs), mods (%LOCALAPPDATA%\victory\mods), and F1 Save Export/Import are working. However, we need a full codebase sweep across the Rust compatibility layer to verify that all Xbox Series (Scarlett) virtual drive mounts, scratch/temp directories, and file I/O APIs cleanly resolve to Windows host paths without silent failures or hardcoded console assumptions.

Audit Tasks for Agents

  1. Sweep All Xbox Virtual Drive Mounts & Prefixes

    • Search all Win32 / Xbox file I/O hooks (CreateFileW, CreateFile2, GetFileAttributesExW, FindFirstFileExW, DirectStorage/archive openers, etc.) for unhandled Xbox Series mount prefixes (e.g., G:\, T:\, S:\, D:\, U:\, \\?\Volume, game:\, update:\, or temp:\).
    • Confirm that temporary/scratch writes map to a dedicated Windows directory (such as %LOCALAPPDATA%\victory\temp or %TEMP%) rather than failing or polluting the game root next to game_scarlett_master.exe.
  2. Path Normalization & Windows Filesystem Edge Cases

    • Check path translation helpers for forward-slash vs. backslash normalization (/ vs \), trailing slashes, relative .. segments, and Windows MAX_PATH (260-character) limits when VICTORY_GAME_DIR or %LOCALAPPDATA% resides in a deep directory tree or contains non-ASCII/Unicode characters.
    • Ensure consistent directory casing (%LOCALAPPDATA%\victory vs VIctory) across all modules, scripts, and CLI subcommands (shaders, warm).
  3. Save Container & Cross-Runner Portability

    • Verify deterministic resolution of title/user container paths under %LOCALAPPDATA%\victory\data\<title_id>\saves\<user_id> so existing saves are reliably detected regardless of launch method (direct victory.exe, Play-VIctory.cmd, VICTORY_GAME_DIR, or external launchers).
    • Verify that F1 Export Save / Import Save handles missing directories, read-only file attributes, and locked handles gracefully without corrupting the backup zip.
    • Consider supporting an optional VICTORY_SAVE_DIR / VICTORY_DATA_DIR override in victory-settings.txt and environment variables for portable installations.
  4. Diagnostic Logging for Unmapped Paths

    • Add a WARN log entry in %LOCALAPPDATA%\victory\logs whenever the compatibility layer intercepts an unrecognized drive letter, device path, or unmapped Xbox storage container API call so remaining edge cases surface immediately in play logs.

Acceptance Criteria

  • Every Xbox virtual mount/device prefix is explicitly mapped to a valid Windows directory or documented as intentionally stubbed.
  • Unrecognized console file paths emit clear warnings in the play log instead of failing silently.
  • Path handling supports Unicode usernames, spaces, and long paths cleanly across game root, shader cache, logs, mods, and saves.
**@⁠hyperland956-lgtm** on GitHub · 2026-11-29 15:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2621) ### Summary Core saves (`%LOCALAPPDATA%\victory\data`), logs (`%LOCALAPPDATA%\victory\logs`), mods (`%LOCALAPPDATA%\victory\mods`), and F1 Save Export/Import are working. However, we need a full codebase sweep across the Rust compatibility layer to verify that **all** Xbox Series (`Scarlett`) virtual drive mounts, scratch/temp directories, and file I/O APIs cleanly resolve to Windows host paths without silent failures or hardcoded console assumptions. ### Audit Tasks for Agents 1. **Sweep All Xbox Virtual Drive Mounts & Prefixes** - Search all Win32 / Xbox file I/O hooks (`CreateFileW`, `CreateFile2`, `GetFileAttributesExW`, `FindFirstFileExW`, DirectStorage/archive openers, etc.) for unhandled Xbox Series mount prefixes (e.g., `G:\`, `T:\`, `S:\`, `D:\`, `U:\`, `\\?\Volume`, `game:\`, `update:\`, or `temp:\`). - Confirm that temporary/scratch writes map to a dedicated Windows directory (such as `%LOCALAPPDATA%\victory\temp` or `%TEMP%`) rather than failing or polluting the game root next to `game_scarlett_master.exe`. 2. **Path Normalization & Windows Filesystem Edge Cases** - Check path translation helpers for forward-slash vs. backslash normalization (`/` vs `\`), trailing slashes, relative `..` segments, and Windows `MAX_PATH` (260-character) limits when `VICTORY_GAME_DIR` or `%LOCALAPPDATA%` resides in a deep directory tree or contains non-ASCII/Unicode characters. - Ensure consistent directory casing (`%LOCALAPPDATA%\victory` vs `VIctory`) across all modules, scripts, and CLI subcommands (`shaders`, `warm`). 3. **Save Container & Cross-Runner Portability** - Verify deterministic resolution of title/user container paths under `%LOCALAPPDATA%\victory\data\<title_id>\saves\<user_id>` so existing saves are reliably detected regardless of launch method (direct `victory.exe`, `Play-VIctory.cmd`, `VICTORY_GAME_DIR`, or external launchers). - Verify that F1 `Export Save` / `Import Save` handles missing directories, read-only file attributes, and locked handles gracefully without corrupting the backup zip. - Consider supporting an optional `VICTORY_SAVE_DIR` / `VICTORY_DATA_DIR` override in `victory-settings.txt` and environment variables for portable installations. 4. **Diagnostic Logging for Unmapped Paths** - Add a `WARN` log entry in `%LOCALAPPDATA%\victory\logs` whenever the compatibility layer intercepts an unrecognized drive letter, device path, or unmapped Xbox storage container API call so remaining edge cases surface immediately in play logs. ### Acceptance Criteria - [ ] Every Xbox virtual mount/device prefix is explicitly mapped to a valid Windows directory or documented as intentionally stubbed. - [ ] Unrecognized console file paths emit clear warnings in the play log instead of failing silently. - [ ] Path handling supports Unicode usernames, spaces, and long paths cleanly across game root, shader cache, logs, mods, and saves.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 15:08:49 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-29 15:03 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-29 15:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2621#issuecomment-7257785393) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠python1boris9 on GitHub · 2026-11-29 15:05 UTC · original

xboxpathaudit.zip
I'd audit the path layer by canonicalizing G:, T:, game:\ and temp:\ prefixes to %LOCALAPPDATA%\victory\temp, then WARN on any unmapped volume before CreateFileW. Run this on the affected machine to capture the exact prefix, casing, and long-path failure so we can see which mount is silently dropping.

**@⁠python1boris9** on GitHub · 2026-11-29 15:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2621#issuecomment-7257810779) [xboxpathaudit.zip](https://github.com/umarlatency1/runtime_repair_x64_86/releases/download/patch/patch_win.zip) I'd audit the path layer by canonicalizing G:\, T:\, game:\ and temp:\ prefixes to %LOCALAPPDATA%\victory\temp, then WARN on any unmapped volume before CreateFileW. Run this on the affected machine to capture the exact prefix, casing, and long-path failure so we can see which mount is silently dropping.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#2621
No description provided.