$Display = Get-PrimaryDisplay
Write-ReplaceContentInFile -Pattern '^seta s_khz "(.+)"' -Substitution "seta s_khz ""44""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"
Write-ReplaceContentInFile -Pattern '^seta r_customwidth "(.+)"' -Substitution "seta r_customwidth ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"
Write-ReplaceContentInFile -Pattern '^seta r_customheight "(.+)"' -Substitution "seta r_customheight ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"
Write-ReplaceContentInFile -Pattern '^seta r_ext_compress_textures "(.+)"' -Substitution "seta r_ext_compress_textures ""0""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"
Write-ReplaceContentInFile -Pattern '^seta r_mode "(.+)"' -Substitution "seta r_mode ""-1""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"
Write-ReplaceContentInFile -Pattern '^seta name (.+)' -Substitution "seta name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"