11 lines
654 B
PowerShell
11 lines
654 B
PowerShell
|
|
[CmdletBinding()]
|
||
|
|
param([string]$WoWPath,[ValidateRange(1,1800)][int]$Seconds=600,[ValidatePattern('^\d+$')][ValidateRange(20,240)][string]$FPS='60')
|
||
|
|
$ErrorActionPreference='Stop'
|
||
|
|
if (!$WoWPath) {
|
||
|
|
$receipt=Join-Path $env:LOCALAPPDATA 'Ruen-UI/install.json'
|
||
|
|
if(Test-Path -LiteralPath $receipt){$WoWPath=(Get-Content -Raw -LiteralPath $receipt|ConvertFrom-Json).gameRoot}
|
||
|
|
}
|
||
|
|
if (!$WoWPath) {$WoWPath=Read-Host 'Paste the WoW Forever folder (containing Wow.exe)'}
|
||
|
|
Write-Host "Requested graphics target: $FPS FPS. Thermal limits may lower it."
|
||
|
|
& (Join-Path $PSScriptRoot 'Tools/Measure-RuenHardware.ps1') -WoWPath $WoWPath -Seconds $Seconds -FPS $FPS
|