Return to Castle Wolfenstein
Developers | |
---|---|
Gray Matter Interactive
Westlake Interactive Raster Productions Splash Damage Nerve Software, LLC | |
Publishers | |
id Software
Activision Microsoft Game Studios Aspyr Media |
|
Release Date | |
Windows: November 19, 2001 | |
Genres | |
Shooter | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play | Return to Castle Wolfenstein.exe | True |
Name Change Script
$NewName = $args[0]
$InstallDir = $PSScriptRoot
function Write-ReplaceContentInFile([string]$Regex, [string]$Replacement, [string]$FilePath)
{
$content = (Get-Content $FilePath) -replace $Regex, $Replacement
[IO.File]::WriteAllLines($FilePath, $content)
}
Write-ReplaceContentInFile -Regex 'seta name (.+)' -Replacement "seta name ""$NewName""" -FilePath "$InstallDir\Main\autoexec.cfg"