3D Ultra Minigolf
Release Date | |
---|---|
Windows: December 31, 1997 | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play | minigolf.exe | True |
Name Change Script
$InstallDir = $PSScriptRoot
$NewName = $args[0]
function Write-ReplaceContentInFile([string]$Regex, [string]$Replacement, [string]$FilePath)
{
$content = (Get-Content $FilePath) -replace $Regex, $Replacement
[IO.File]::WriteAllLines($FilePath, $content)
}
# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Regex '^Player1Name=(.+)' -Replacement "Player1Name=$NewName" -FilePath "$InstallDir\minigolf.ini"