diff --git a/LANCommander/Snippets/Functions/Get-PrimaryDisplay.ps1 b/LANCommander/Snippets/Functions/Get-PrimaryDisplay.ps1 index 178b0e1..460e167 100644 --- a/LANCommander/Snippets/Functions/Get-PrimaryDisplay.ps1 +++ b/LANCommander/Snippets/Functions/Get-PrimaryDisplay.ps1 @@ -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 \ No newline at end of file diff --git a/LANCommander/Snippets/Functions/Write-ReplaceContentInFile.ps1 b/LANCommander/Snippets/Functions/Write-ReplaceContentInFile.ps1 index c28c8bf..f3e8faa 100644 --- a/LANCommander/Snippets/Functions/Write-ReplaceContentInFile.ps1 +++ b/LANCommander/Snippets/Functions/Write-ReplaceContentInFile.ps1 @@ -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\" \ No newline at end of file +Write-ReplaceContentInFile -Pattern '^game.setPlayerName "(.+)"' -Substitution "game.setPlayerName ""$NewPlayerAlias""" -FilePath "$InstallDirectory\" \ No newline at end of file