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 -Data -DataTemplate -Name