Created
October 16, 2023 11:15
-
-
Save palaashatri/81f493a25616ada3ed2844092cd6936d to your computer and use it in GitHub Desktop.
Quick PowerShell script to configure SWKOTOR to run in Windowed mode.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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