Fix snippets

lx-work
Pat Hartl 2023-11-30 19:46:04 -06:00
parent 32e135de7b
commit a8c62151f3
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
# Bounds are accessible by $Display.Width and $Display.Height
# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay

View File

@ -1,2 +1,2 @@
# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Regex '^game.setPlayerName "(.+)"' -Replacement "game.setPlayerName ""$NewName""" -FilePath "$InstallDir\<File Path>"
Write-ReplaceContentInFile -Pattern '^game.setPlayerName "(.+)"' -Substitution "game.setPlayerName ""$NewPlayerAlias""" -FilePath "$InstallDirectory\<File Path>"