Fix snippets
parent
32e135de7b
commit
a8c62151f3
|
@ -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
|
|
@ -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>"
|
Loading…
Reference in New Issue