Files
EonaCat.XSBox/scripts/profiles/install-rtx-4090-profile.ps1
T
EonaCat 0f7377a1b5
Rust validation / Windows x64 build and tests (push) Waiting to run
Rust validation / Formatting (push) Failing after 27s
EonaCat/ci-workflows: SonarQube / sonar (push) Successful in 45s
Initial
2026-12-04 21:08:34 +01:00

21 lines
1.0 KiB
PowerShell

$ErrorActionPreference = 'Stop'
$source = Join-Path $PSScriptRoot '..\..\settings\graphics\rtx-4090-ultrawide.txt'
$source = [System.IO.Path]::GetFullPath($source)
if (-not (Test-Path -LiteralPath $source)) {
throw "Profile file not found: $source"
}
$eonacatHome = $env:EONACAT_XS_HOME
if ([string]::IsNullOrWhiteSpace($eonacatHome)) {
$eonacatHome = Join-Path $env:LOCALAPPDATA 'EonaCat\XS'
}
New-Item -ItemType Directory -Path $eonacatHome -Force | Out-Null
$destination = Join-Path $eonacatHome 'eonacat-xs-settings.txt'
if (Test-Path -LiteralPath $destination) {
$stamp = Get-Date -Format 'yyyyMMdd-HHmmss'
Copy-Item -LiteralPath $destination -Destination "$destination.$stamp.bak" -Force
}
Copy-Item -LiteralPath $source -Destination $destination -Force
Write-Host "Installed RTX 4090 profile: $destination" -ForegroundColor Green
Write-Host 'Backup of the previous settings was kept beside the new file (if one existed).'
Write-Host 'Restart EonaCat XS. Install the NVIDIA runtime in the launcher if DLSS does not activate.'