Add PlayStation controller prompt glyphs #2899

Open
github-bot wants to merge 1 commit from github-bot/gh-2899 into main AGit
Owner

@⁠2441392263 on GitHub · 2026-11-29 18:39 UTC · original
2441392263:feature/ps5-prompt-icons → main · +1091 −1 · 7 files · 1 commits · open

Related: #2126

What it changes

The title's Xbox icon movie cannot show the button names on a PlayStation pad. This adds a source-only path for PlayStation prompts without committing game data or changing the title's files:

  • tools/ps_prompt_glyphs.py, adapted from ProjectLeonida/mandy 51d343b8, builds a replacement prompt movie from the user's own local archive and writes it outside the repository.
  • DStorage recognises the title's exact prompt-movie read and serves the generated movie when PlayStation prompts are selected.
  • VICTORY_PROMPTS accepts AUTO, XBOX and PLAYSTATION in F1. AUTO selects PlayStation for native DualSense controls or a connected Sony HID pad; an explicit choice wins.
  • The generated .gfx file is not committed. The staged asset-policy check covers source only.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): Series S, 1080 to 1440, DLSS Quality, DLSS frame generation 2x; GPU and ray-tracing state were not recorded.
  • Before: the title showed Xbox symbols or keyboard key caps.
  • After: the account-selection screen showed PlayStation triangle and cross prompts; the saved PLAYSTATION choice is applied on the next start.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader change.
  • cargo test passed for the crates it touches: yes. victory-hle glyph tests: 3 passed; victory-gpu F1 menu tests: 14 passed with one test thread.
  • python -I tools\ps_prompt_glyphs.py --selftest: passed.
  • cargo xtask policy --staged: 7 files passed.
  • Full workspace tests were also attempted; the three existing victory-formats BCPack oracle tests fail on main and this branch does not touch that crate.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #2798 and #2873 are direct alternative implementations that draw symbols into the movie in memory; #937 is the earlier file-serving predecessor. This PR instead serves a locally generated complete movie through DStorage and adds the F1/AUTO device-selection path.
**@⁠2441392263** on GitHub · 2026-11-29 18:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2899) `2441392263:feature/ps5-prompt-icons` → `main` · +1091 −1 · 7 files · 1 commits · open Related: #2126 ## What it changes The title's Xbox icon movie cannot show the button names on a PlayStation pad. This adds a source-only path for PlayStation prompts without committing game data or changing the title's files: - `tools/ps_prompt_glyphs.py`, adapted from ProjectLeonida/mandy 51d343b8, builds a replacement prompt movie from the user's own local archive and writes it outside the repository. - DStorage recognises the title's exact prompt-movie read and serves the generated movie when PlayStation prompts are selected. - `VICTORY_PROMPTS` accepts AUTO, XBOX and PLAYSTATION in F1. AUTO selects PlayStation for native DualSense controls or a connected Sony HID pad; an explicit choice wins. - The generated `.gfx` file is not committed. The staged asset-policy check covers source only. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): Series S, 1080 to 1440, DLSS Quality, DLSS frame generation 2x; GPU and ray-tracing state were not recorded. - Before: the title showed Xbox symbols or keyboard key caps. - After: the account-selection screen showed PlayStation triangle and cross prompts; the saved PLAYSTATION choice is applied on the next start. - For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader change. - `cargo test` passed for the crates it touches: yes. `victory-hle` glyph tests: 3 passed; `victory-gpu` F1 menu tests: 14 passed with one test thread. - `python -I tools\ps_prompt_glyphs.py --selftest`: passed. - `cargo xtask policy --staged`: 7 files passed. - Full workspace tests were also attempted; the three existing `victory-formats` BCPack oracle tests fail on main and this branch does not touch that crate. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2798 and #2873 are direct alternative implementations that draw symbols into the movie in memory; #937 is the earlier file-serving predecessor. This PR instead serves a locally generated complete movie through DStorage and adds the F1/AUTO device-selection path.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 18:40:26 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host/menu.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2899/head:github-bot/gh-2899'
git switch 'github-bot/gh-2899'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2899'
git switch 'github-bot/gh-2899'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2899'
git switch 'github-bot/gh-2899'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2899'
git switch 'main'
git merge --squash 'github-bot/gh-2899'
git switch 'main'
git merge --ff-only 'github-bot/gh-2899'
git switch 'main'
git merge 'github-bot/gh-2899'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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!2899
No description provided.