From f4c6aca754a60648615fcbf87f2385743d68fdc5 Mon Sep 17 00:00:00 2001 From: TheGeogeo <57634077+TheGeogeo@users.noreply.github.com> Date: Tue, 1 Dec 2026 00:46:54 +0100 Subject: [PATCH] gate: game-gate.ps1 says it needs PowerShell 7 (D3D12-GATE-PWSH7) Under Windows PowerShell 5.1 the gate failed in about 2 s without starting the game and without saying why (reported by a tester). A #Requires -Version 7.0 line makes 5.1 refuse it with a message before anything runs; docs/game_gate.md says so, and a test keeps the line. --- docs/game_gate.md | 2 ++ scripts/game-gate.ps1 | 1 + tests/test_game_gate.py | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/docs/game_gate.md b/docs/game_gate.md index 4bb6c372da..b0e47eabba 100644 --- a/docs/game_gate.md +++ b/docs/game_gate.md @@ -6,6 +6,8 @@ The script is `scripts/game-gate.ps1` (Windows, PowerShell 7). The parser is `to ## Running it +It needs PowerShell 7 (`pwsh`). Windows PowerShell 5.1 (`powershell.exe`) refuses the script with a message before anything runs, from its `#Requires -Version 7.0` line. + Build the runtime first (`d3d12\scripts\build-nvidia.ps1`). The gate refuses to start without `d3d12\target\diag\leonida.exe`, because the play script would build it inside the timed run. Make a data template once: diff --git a/scripts/game-gate.ps1 b/scripts/game-gate.ps1 index ad02a6c3b7..7d38505cea 100644 --- a/scripts/game-gate.ps1 +++ b/scripts/game-gate.ps1 @@ -1,3 +1,4 @@ +#Requires -Version 7.0 # The in-game gate for the D3D12 runtime (leonida.exe): one run, measured the same way on every machine. # # pwsh -NoProfile -File scripts\game-gate.ps1 run -Game