docs: replace specific exe/scene references with generic game file (.exe) wording
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
This commit is contained in:
1 parent
084321f432
commit
3a4ce453cd
2 files changed
+26
-22
No files matched your search
+12
-8
@@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
Portable launcher tuned for 6-8 GB VRAM GPUs and 16 GB RAM PCs (windowed by default).
|
||||
.EXAMPLE
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe'
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe'
|
||||
.EXAMPLE
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe' -FrameGen -Output '1664x936'
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -FrameGen -Output 936
|
||||
#>
|
||||
param(
|
||||
[string]$Exe = '',
|
||||
@@ -28,20 +28,24 @@ $menuFile = Join-Path $homeDir 'victory-settings.txt'
|
||||
$slDir = if ($env:VICTORY_STREAMLINE_DIR) { $env:VICTORY_STREAMLINE_DIR } else { Join-Path $repo 'nvidia-sdk\Streamline\bin\x64' }
|
||||
$fxDir = if ($env:VICTORY_FIDELITYFX_DIR) { $env:VICTORY_FIDELITYFX_DIR } else { Join-Path $repo 'amd-sdk\FidelityFX\bin' }
|
||||
|
||||
# Resolve title executable from -Exe, VICTORY_GAME_DIR, or victory.toml
|
||||
if (-not $Exe -and $env:VICTORY_GAME_DIR) {
|
||||
$Exe = Join-Path $env:VICTORY_GAME_DIR 'game_scarlett_master.exe'
|
||||
# Resolve game file (.exe) from -Exe, VICTORY_GAME_DIR, or victory.toml
|
||||
if (-not $Exe -and $env:VICTORY_GAME_DIR -and (Test-Path -LiteralPath $env:VICTORY_GAME_DIR)) {
|
||||
$cand = Get-ChildItem -LiteralPath $env:VICTORY_GAME_DIR -Filter '*.exe' -File -ErrorAction SilentlyContinue | Sort-Object Length -Descending | Select-Object -First 1
|
||||
if ($cand) { $Exe = $cand.FullName }
|
||||
}
|
||||
if (-not $Exe) {
|
||||
$toml = Join-Path $repo 'victory.toml'
|
||||
if (Test-Path -LiteralPath $toml) {
|
||||
$m = Select-String -Path $toml -Pattern '^\s*game_dir\s*=\s*"([^"]+)"' | Select-Object -First 1
|
||||
if ($m) { $Exe = Join-Path $m.Matches[0].Groups[1].Value 'game_scarlett_master.exe' }
|
||||
if ($m -and (Test-Path -LiteralPath $m.Matches[0].Groups[1].Value)) {
|
||||
$cand = Get-ChildItem -LiteralPath $m.Matches[0].Groups[1].Value -Filter '*.exe' -File -ErrorAction SilentlyContinue | Sort-Object Length -Descending | Select-Object -First 1
|
||||
if ($cand) { $Exe = $cand.FullName }
|
||||
}
|
||||
}
|
||||
}
|
||||
if (-not $Exe -or -not (Test-Path -LiteralPath $Exe)) {
|
||||
Write-Host 'Title executable not found. Pass it with -Exe:'
|
||||
Write-Host " powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'C:\Path\To\game_scarlett_master.exe'"
|
||||
Write-Host 'Game file (.exe) not found. Pass it with -Exe:'
|
||||
Write-Host " powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe'"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user