upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/windows-boot
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/windows-boot')
-rw-r--r--scripts/windows-boot/boot.ps110
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/windows-boot/boot.ps1 b/scripts/windows-boot/boot.ps1
index 7863054b3..db11e4e76 100644
--- a/scripts/windows-boot/boot.ps1
+++ b/scripts/windows-boot/boot.ps1
@@ -50,7 +50,8 @@
50 50
51.PARAMETER InputScript 51.PARAMETER InputScript
52 LEONIDA_INPUT_SCRIPT: timed pad presses, seconds since the pad's first poll (button@seconds, comma-separated; 52 LEONIDA_INPUT_SCRIPT: timed pad presses, seconds since the pad's first poll (button@seconds, comma-separated;
53 buttons a b x y start back lb rb up down left right). Sets LEONIDA_KEYBOARD_PAD=always. Builds older than 53 buttons a b x y start back lb rb up down left right). Each press is held 300 ms; button@seconds:hold holds it
54 longer, e.g. b@1100:3 for a title that reads its pad only every few seconds. Sets LEONIDA_KEYBOARD_PAD=always. Builds older than
54 main @ 8146ef690 ignore a script longer than 63 characters. Default 'a@45,a@60,a@75,a@90'. 55 main @ 8146ef690 ignore a script longer than 63 characters. Default 'a@45,a@60,a@75,a@90'.
55 56
56.PARAMETER NoInput 57.PARAMETER NoInput
@@ -75,6 +76,9 @@
75.PARAMETER ExtraArgs 76.PARAMETER ExtraArgs
76 More gta6rt arguments, appended after the standard ones. 77 More gta6rt arguments, appended after the standard ones.
77 78
79.PARAMETER FirstRunUi
80 Launch with the offline first-run UI profile instead of the generic runtime profile.
81
78.PARAMETER Python 82.PARAMETER Python
79 Python 3.12+ used for tools/boot_trace.py. Default: python, else py -3. 83 Python 3.12+ used for tools/boot_trace.py. Default: python, else py -3.
80 84
@@ -118,6 +122,7 @@ param(
118 [switch]$NoCapture, 122 [switch]$NoCapture,
119 [switch]$NoInput, 123 [switch]$NoInput,
120 [string[]]$ExtraArgs = @(), 124 [string[]]$ExtraArgs = @(),
125 [switch]$FirstRunUi,
121 [string]$Python = "", 126 [string]$Python = "",
122 [int]$SummaryLines = 40, 127 [int]$SummaryLines = 40,
123 [int]$LockWaitSeconds = 3600, 128 [int]$LockWaitSeconds = 3600,
@@ -277,7 +282,8 @@ foreach ($pair in $EnvPairs) {
277} 282}
278if ($bootEnv["LEONIDA_CAPTURE"]) { $Capture = $bootEnv["LEONIDA_CAPTURE"] } 283if ($bootEnv["LEONIDA_CAPTURE"]) { $Capture = $bootEnv["LEONIDA_CAPTURE"] }
279 284
280$gameArgs = @("--run", $Exe, "--game-dir", $GameDir, "--overlay", $Overlay, "--trace", $TraceFile, "--trace-d3d12") + $ExtraArgs 285$launchMode = if ($FirstRunUi) { "--first-run-ui" } else { "--run" }
286$gameArgs = @($launchMode, $Exe, "--game-dir", $GameDir, "--overlay", $Overlay, "--trace", $TraceFile, "--trace-d3d12") + $ExtraArgs
281$argLine = ($gameArgs | ForEach-Object { ConvertTo-ProcessArgument ([string]$_) }) -join " " 287$argLine = ($gameArgs | ForEach-Object { ConvertTo-ProcessArgument ([string]$_) }) -join " "
282 288
283if (-not $DigestOnly) { 289if (-not $DigestOnly) {