Skip to content

Commit

Permalink
Update Optimize-Epicgames.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-PIxelzen committed Aug 22, 2024
1 parent 0a52617 commit 63d6ace
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/Game & Program tuners/Optimize-Epicgames.ps1
Original file line number Diff line number Diff line change
@@ -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 = @{
Expand All @@ -24,7 +22,6 @@ $replacements = @{

#OfflineMode=False
}

# Read the content of the .ini file
$iniContent = Get-Content -Path $iniFilePath -Raw

Expand All @@ -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

Expand All @@ -46,5 +42,4 @@ foreach ($key in $replacements.Keys) {
Write-Host $updatedLine
}
}

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

0 comments on commit 63d6ace

Please sign in to comment.