Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is for rocketleague.exe
- # Change the screen resolution on launch
- # Make changes as instructed below
- # Save this script with a .ps1 extension
- #########################################################################
- # FIND THIS
- $FindWidth = 'ResX=3840'
- $FindHeight = 'ResY=2160'
- # REPLACE WITH THIS
- $ReplaceWidth = 'ResX=1920'
- $ReplaceHeight = 'ResY=1080'
- <# UNCOMMENT THESE VARIABLES IF ONEDRIVE IS INSTALLED
- $RLPath = "$Env:OneDrive\Documents\My Games\Rocket League\TAGame\Config"
- $InFile = "$RLPath\TASystemSettings.ini"
- $OutFile = "$RLPath\TASystemSettings1.ini"
- $BakFile = "$RLPath\TASystemSettings.bak"
- #>
- <# UNCOMMENT THESE VARIABLES IF ONEDRIVE IS [NOT] INSTALLED
- $RLPath = "$Env:USERPROFILE\Documents\My Games\Rocket League\TAGame\Config"
- $InFile = "$RLPath\TASystemSettings.ini"
- $OutFile = "$RLPath\TASystemSettings1.ini"
- $BakFile = "$RLPath\TASystemSettings.bak"
- #>
- # CREATE A BACKUP FILE
- Copy-Item "$InFile" -Destination "$BakFile"
- # FIND THE TEXT AND REPLACE IT
- (Get-Content "$InFile") -Replace "$FindWidth", "$ReplaceWidth" -Encoding 'UTF8' | Out-File "$OutFile"
- (Get-Content "$OutFile") -Replace "$FindHeight", "$ReplaceHeight" -Encoding 'UTF8' | Out-File "$InFile"
- # REMOVE LEFTOVER FILES
- Remove-Item "$OutFile" -ErrorAction 'Ignore'
Add Comment
Please, Sign In to add comment