Skip to content

Commit

Permalink
add if (Test-Path -Path
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-PIxelzen committed Aug 22, 2024
1 parent 2e6f1b5 commit a225d7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/Game & Program tuners/Optimize-Epicgames.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Path to the .ini file
$iniFilePath = "$env:LocalAppData\EpicGamesLauncher\Saved\Config\Windows\GameUserSettings.ini"
# Backup the original file if it exists
if (Test-Path -Path $iniFilePath) {
Stop-Process -Name "Epic*" -Force
# Define the replacements
$replacements = @{
Expand Down Expand Up @@ -34,4 +36,6 @@ foreach ($key in $replacements.Keys) {
Write-Host $updatedLine
}
}

}
#Write-Host "The specified keys have been updated to 'True' in '$iniFilePath'."

0 comments on commit a225d7e

Please sign in to comment.