Skip to content

Instantly share code, notes, and snippets.

@palaashatri
Created October 16, 2023 11:15
Show Gist options
  • Save palaashatri/81f493a25616ada3ed2844092cd6936d to your computer and use it in GitHub Desktop.
Save palaashatri/81f493a25616ada3ed2844092cd6936d to your computer and use it in GitHub Desktop.
Quick PowerShell script to configure SWKOTOR to run in Windowed mode.
$swkotorPath = "$env:ProgramFiles (x86)\Steam\steamapps\common\swkotor"
$swkotorIniPath = "$swkotorPath\swkotor.ini"
# Modify the configuration file
(Get-Content $swkotorIniPath) |
ForEach-Object { $_ -replace 'FullScreen=1', 'FullScreen=0' } |
Set-Content $swkotorIniPath
Add-Content $swkotorIniPath "`n[Graphics Options]`nAllowWindowedMode=1"
Write-Host "The configuration file has been modified successfully."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment