diff --git a/modules/Game & Program tuners/Optimize-Epicgames.ps1 b/modules/Game & Program tuners/Optimize-Epicgames.ps1 index 457a331..2520a1a 100644 --- a/modules/Game & Program tuners/Optimize-Epicgames.ps1 +++ b/modules/Game & Program tuners/Optimize-Epicgames.ps1 @@ -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 = @{ @@ -34,4 +36,6 @@ foreach ($key in $replacements.Keys) { Write-Host $updatedLine } } + +} #Write-Host "The specified keys have been updated to 'True' in '$iniFilePath'."