README: quote the executable path in the PowerShell launch example #424

Closed
github-bot wants to merge 1 commit from gh-pr/424/head into gh-pr/424/base
Owner

@⁠TurGangS on GitHub · 2026-11-24 03:13 UTC · original
TurGangS:docs-powershell-launch → main · +2 −2 · 1 files · 1 commits · closed without merging

PowerShell treats the < in the getting-started launch command as redirection and the apostrophe in title's as an opening quote. Pasting the example fails before VIctory starts.

Use a quoted example path and tell the reader to replace it with their executable. I checked the old and new commands with the Windows PowerShell parser. The new one preserves the path with spaces as a single argument between run and --execute. cargo xtask policy passed (151 files). No game was launched.

OpenAI Codex (GPT-6) helped reproduce the error, edit the README and check the example.

**@⁠TurGangS** on GitHub · 2026-11-24 03:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/424) `TurGangS:docs-powershell-launch` → `main` · +2 −2 · 1 files · 1 commits · closed without merging PowerShell treats the `<` in the getting-started launch command as redirection and the apostrophe in `title's` as an opening quote. Pasting the example fails before VIctory starts. Use a quoted example path and tell the reader to replace it with their executable. I checked the old and new commands with the Windows PowerShell parser. The new one preserves the path with spaces as a single argument between `run` and `--execute`. `cargo xtask policy` passed (151 files). No game was launched. OpenAI Codex (GPT-6) helped reproduce the error, edit the README and check the example.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:03:24 +00:00
github-bot closed this pull request 2026-11-26 04:03:24 +00:00
Author
Owner

@⁠jeremygold02 on GitHub · 2026-11-24 04:43 UTC · original

Thanks @⁠TurGangS for fixing the README launch example. I checked head 5b9a9b37ef2691dbdc40e7fc1637e0abdee1dac3 with:

git diff --check d2a4bae1f49533ef5cb512fd1b1ba1513f2e1989 HEAD
[System.Management.Automation.Language.Parser]::ParseInput(".\target\release\victory.exe run 'D:\Xbox Games\GTA VI\title.exe' --execute", [ref]$tokens, [ref]$errors)

Both checks passed: the patch has no whitespace errors, and the changed README command parses as PowerShell. This is syntax validation only; I did not build or launch the application.

**@⁠jeremygold02** on GitHub · 2026-11-24 04:43 UTC · [original](https://github.com/Marvisak/VIctory/pull/424#issuecomment-7122278889) Thanks @⁠TurGangS for fixing the README launch example. I checked head `5b9a9b37ef2691dbdc40e7fc1637e0abdee1dac3` with: ``` git diff --check d2a4bae1f49533ef5cb512fd1b1ba1513f2e1989 HEAD [System.Management.Automation.Language.Parser]::ParseInput(".\target\release\victory.exe run 'D:\Xbox Games\GTA VI\title.exe' --execute", [ref]$tokens, [ref]$errors) ``` Both checks passed: the patch has no whitespace errors, and the changed README command parses as PowerShell. This is syntax validation only; I did not build or launch the application.
Author
Owner

@⁠pfhandler on GitHub · 2026-11-24 20:53 UTC · original

Local patches for two issues hit while running GTA VI 1.0.2.1 through VIctory on Linux (GE-Proton 11-14, vkd3d-proton 3.2.0, RTX 4060 Ti 8 GB):

  • VICTORY_NO_HOST_PAD=1 — a connected host pad (e.g. DualShock appearing as XInput pad 0) keeps the keyboard stand-in pad from being enumerated. Hiding the host pad lets VICTORY_KEYS drive the title again.
  • VICTORY_MODE=1920x1080 — the DXGI output mode list is fixed at the console's 3840x2160. Reporting 1920x1080 instead keeps the title's render targets and VRAM use down on smaller hosts (Series S profile + 1080p settled around 3.5 GB VRAM here).

Both are local uncommitted diffs, posted here for reuse. Tested only on the configuration above.

diff --git a/crates/victory-gpu/src/dxgi.rs b/crates/victory-gpu/src/dxgi.rs
index c7f7c45..2535b68 100644
--- a/crates/victory-gpu/src/dxgi.rs
+++ b/crates/victory-gpu/src/dxgi.rs
@@ -219,6 +219,19 @@ struct Mode {
 }
 const _: () = assert!(size_of::<Mode>() == 32);
 
+/// The console's fixed output mode, overridable for hosts smaller than the
+/// console's 4K target: `VICTORY_MODE=1920x1080` reports that instead.
+fn mode_size() -> (u32, u32) {
+    const DEFAULT: (u32, u32) = (3840, 2160);
+    let Some(text) = std::env::var_os("VICTORY_MODE") else {
+        return DEFAULT;
+    };
+    let text = text.to_string_lossy();
+    text.split_once('x')
+        .and_then(|(w, h)| Some((w.trim().parse().ok()?, h.trim().parse().ok()?)))
+        .unwrap_or(DEFAULT)
+}
+
 /// The console's mode list: one 4K mode at 60 Hz (Grand Theft Auto VI looks
 /// for a 120 Hz one to allow 120 Hz frame intervals).
 /// shortcut: fixed mode, not the host display's; report the host's rates if
@@ -242,9 +255,10 @@ extern "system" fn modes(
         return MORE_DATA;
     }
     *count = 1;
+    let (width, height) = mode_size();
     let mode = Mode {
-        width: 3840,
-        height: 2160,
+        width,
+        height,
         refresh: [60, 1],
         format: 0,
         scanlines: 1, // progressive
diff --git a/crates/victory-hle/src/modules/gameinput.rs b/crates/victory-hle/src/modules/gameinput.rs
index a411bd0..da8d66c 100644
--- a/crates/victory-hle/src/modules/gameinput.rs
+++ b/crates/victory-hle/src/modules/gameinput.rs
@@ -1134,6 +1134,11 @@ mod host {
 
     impl Source for Host {
         fn pad(&mut self, slot: usize) -> Option<PadState> {
+            // The keyboard stand-in pad only exists while no host pad is
+            // connected; this hides a host pad the title mis-handles.
+            if std::env::var_os("VICTORY_NO_HOST_PAD").is_some() {
+                return None;
+            }
             if self.empty_until[slot].is_some_and(|until| Instant::now() < until) {
                 return None;
             }
**@⁠pfhandler** on GitHub · 2026-11-24 20:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/424#issuecomment-7144185732) Local patches for two issues hit while running GTA VI 1.0.2.1 through VIctory on Linux (GE-Proton 11-14, vkd3d-proton 3.2.0, RTX 4060 Ti 8 GB): - `VICTORY_NO_HOST_PAD=1` — a connected host pad (e.g. DualShock appearing as XInput pad 0) keeps the keyboard stand-in pad from being enumerated. Hiding the host pad lets `VICTORY_KEYS` drive the title again. - `VICTORY_MODE=1920x1080` — the DXGI output mode list is fixed at the console's 3840x2160. Reporting 1920x1080 instead keeps the title's render targets and VRAM use down on smaller hosts (Series S profile + 1080p settled around 3.5 GB VRAM here). Both are local uncommitted diffs, posted here for reuse. Tested only on the configuration above. ```diff diff --git a/crates/victory-gpu/src/dxgi.rs b/crates/victory-gpu/src/dxgi.rs index c7f7c45..2535b68 100644 --- a/crates/victory-gpu/src/dxgi.rs +++ b/crates/victory-gpu/src/dxgi.rs @@ -219,6 +219,19 @@ struct Mode { } const _: () = assert!(size_of::<Mode>() == 32); +/// The console's fixed output mode, overridable for hosts smaller than the +/// console's 4K target: `VICTORY_MODE=1920x1080` reports that instead. +fn mode_size() -> (u32, u32) { + const DEFAULT: (u32, u32) = (3840, 2160); + let Some(text) = std::env::var_os("VICTORY_MODE") else { + return DEFAULT; + }; + let text = text.to_string_lossy(); + text.split_once('x') + .and_then(|(w, h)| Some((w.trim().parse().ok()?, h.trim().parse().ok()?))) + .unwrap_or(DEFAULT) +} + /// The console's mode list: one 4K mode at 60 Hz (Grand Theft Auto VI looks /// for a 120 Hz one to allow 120 Hz frame intervals). /// shortcut: fixed mode, not the host display's; report the host's rates if @@ -242,9 +255,10 @@ extern "system" fn modes( return MORE_DATA; } *count = 1; + let (width, height) = mode_size(); let mode = Mode { - width: 3840, - height: 2160, + width, + height, refresh: [60, 1], format: 0, scanlines: 1, // progressive diff --git a/crates/victory-hle/src/modules/gameinput.rs b/crates/victory-hle/src/modules/gameinput.rs index a411bd0..da8d66c 100644 --- a/crates/victory-hle/src/modules/gameinput.rs +++ b/crates/victory-hle/src/modules/gameinput.rs @@ -1134,6 +1134,11 @@ mod host { impl Source for Host { fn pad(&mut self, slot: usize) -> Option<PadState> { + // The keyboard stand-in pad only exists while no host pad is + // connected; this hides a host pad the title mis-handles. + if std::env::var_os("VICTORY_NO_HOST_PAD").is_some() { + return None; + } if self.empty_until[slot].is_some_and(|until| Instant::now() < until) { return None; } ```
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:02 UTC · original

Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current).

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/424#issuecomment-7148074831) Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current). If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

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/Marvisak--VIctory!424
No description provided.