$Display = Get-PrimaryDisplay
Write-ReplaceContentInFile -Pattern 'seta com_skipIdLogo (.+)' -Substitution "seta com_skipIdLogo ""1""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_customWidth (.+)' -Substitution "seta r_customWidth ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_customHeight (.+)' -Substitution "seta r_customHeight ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_mode (.+)' -Substitution "seta r_mode ""-1""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
Write-ReplaceContentInFile -Pattern 'seta name (.+)' -Substitution "seta name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"