Quake

From LANCommander
Revision as of 01:23, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|id Software}} |Publishers = {{Game.InfoBox.Publisher|GT Interactive}} {{Game.InfoBox.Publisher|id Software}} {{Game.InfoBox.Publisher|Midway Games}} {{Game.InfoBox.Publisher|MacSoft Games}} {{Game.InfoBox.Publisher|R-Comp Interactive}} {{Game.InfoBox.Publisher|PXL computers}} {{Game.InfoBox.Publisher|Sega}} {{Game.InfoBox.Publisher|Pulse Interactive}} |Release Date = {{Game.InfoBo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
id Software
Publishers
GT Interactive

id Software Midway Games MacSoft Games R-Comp Interactive PXL computers Sega

Pulse Interactive
Release Date
Windows: June 22, 1996
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play GLQUAKE.exe True
Play darkplaces.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 '^_cl_name (.+)' -Replacement "_cl_name ""$NewName""" -FilePath "$InstallDir\Id1\config.cfg"