$Display = Get-PrimaryDisplay
Write-ReplaceContentInFile -Pattern '^v_vsync = (\d+)' -Substitution "v_vsync 0" -FilePath "$InstallDirectory\autoconfig.cfg"
Write-ReplaceContentInFile -Pattern '^sv_register = (\d+)' -Substitution "sv_register 0" -FilePath "$InstallDirectory\autoconfig.cfg"
Write-ReplaceContentInFile -Pattern '^sv_register = (\d+)' -Substitution "sv_register 0" -FilePath "$InstallDirectory\autoconfig.cfg"
Write-ReplaceContentInFile -Pattern '^Fullscreen=(\d+)' -Substitution "Fullscreen=1" -FilePath "$InstallDirectory\startup_config.cfg"
Write-ReplaceContentInFile -Pattern '^Window.Height=(\d+)' -Substitution "Window.Height=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\startup_config.cfg"
Write-ReplaceContentInFile -Pattern '^Window.Width=(\d+)' -Substitution "Window.Width=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\startup_config.cfg"
Write-ReplaceContentInFile -Pattern '^cl_name = (.+)' -Substitution "cl_name = $NewPlayerAlias" -FilePath "$InstallDirectory\autoconfig.cfg"