21 lines
1.0 KiB
PowerShell
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.'
|