Update PowerShell snippets
This commit is contained in:
parent
a67b1953f0
commit
81639e9fc2
8 changed files with 10 additions and 4 deletions
|
|
@ -1,2 +0,0 @@
|
|||
# Takes the variable $Filename, splits it by invalid characters, then joins using _
|
||||
$Filename.Split([IO.Path]::GetInvalidFileNameChars()) -join '_'
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
# Converts a string to a UTF16-encoded byte array. This looks like ASCII characters separated by 0x00 in most cases.
|
||||
$bytes = ConvertTo-StringBytes -Input "Hello World!" -Utf16 1 -MaxLength 12
|
||||
$bytes = ConvertTo-StringBytes -Input "Hello World!" -Utf16 $true -MaxLength 12
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# Patches GameSpy master server references to OpenSpy in game binaries and config files
|
||||
Edit-PatchGameSpy -Path $InstallDirectory
|
||||
|
|
@ -1 +1 @@
|
|||
$manifest = Get-GameManifest "C:\Games\<Game Directory>"
|
||||
$manifest = Get-GameManifest -Path $InstallDirectory -Id $GameManifest.Id
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# Returns resolved options (defaults + per-game overrides) for a redistributable
|
||||
$options = Get-RedistributableOptions -Path $InstallDirectory -Id $GameManifest.Id -Name $RedistributableManifest.Name
|
||||
|
|
@ -0,0 +1 @@
|
|||
$sanitized = Get-SanitizedPath -Path $PlayerAlias
|
||||
2
LANCommander.Server/Snippets/Functions/New-Package.ps1
Normal file
2
LANCommander.Server/Snippets/Functions/New-Package.ps1
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Creates a package result for the packaging pipeline
|
||||
New-Package -Path $InstallDirectory -Version "1.0.0"
|
||||
|
|
@ -0,0 +1 @@
|
|||
Write-GameManifest -Path $InstallDirectory -Manifest $manifest
|
||||
Loading…
Add table
Add a link
Reference in a new issue