diff --git a/modules/Game & Program tuners/Optimize-Epicgames.ps1 b/modules/Game & Program tuners/Optimize-Epicgames.ps1 index 82a13bc..bfd22da 100644 --- a/modules/Game & Program tuners/Optimize-Epicgames.ps1 +++ b/modules/Game & Program tuners/Optimize-Epicgames.ps1 @@ -1,7 +1,5 @@ # Path to the .ini file $iniFilePath = "$env:LocalAppData\EpicGamesLauncher\Saved\Config\Windows\GameUserSettings.ini" - - Stop-Process -Name "Epic*" -Force # Define the replacements $replacements = @{ @@ -24,7 +22,6 @@ $replacements = @{ #OfflineMode=False } - # Read the content of the .ini file $iniContent = Get-Content -Path $iniFilePath -Raw @@ -33,7 +30,6 @@ foreach ($pattern in $replacements.Keys) { $replacement = $replacements[$pattern] $iniContent = $iniContent -replace $pattern, $replacement } - # Write the updated content back to the .ini file $iniContent | Out-File -Encoding Default -FilePath $iniFilePath @@ -46,5 +42,4 @@ foreach ($key in $replacements.Keys) { Write-Host $updatedLine } } - Write-Host "The specified keys have been updated to 'True' in '$iniFilePath'."