Return to Castle Wolfenstein

From LANCommander
Revision as of 01:25, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Gray Matter Interactive}} {{Game.InfoBox.Developer|Westlake Interactive}} {{Game.InfoBox.Developer|Raster Productions}} {{Game.InfoBox.Developer|Splash Damage}} {{Game.InfoBox.Developer|Nerve Software, LLC}} |Publishers = {{Game.InfoBox.Publisher|id Software}} {{Game.InfoBox.Publisher|Activision}} {{Game.InfoBox.Publisher|Microsoft Game Studios}} {{Game.InfoBox.Publisher|Aspyr Med...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"