Far Cry

From LANCommander
Revision as of 00:33, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Crytek Frankfurt}} {{Game.InfoBox.Developer|Crytek}} |Publishers = {{Game.InfoBox.Publisher|Ubisoft Entertainment}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|March 23, 2004}} |Genres = {{Game.InfoBox.Genre|Shooter}} | PCGamingWiki = Far_Cry }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = Bin32/FarCry.exe|Arguments = |WorkingDirectory = |Primary =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Crytek Frankfurt

Crytek

Publishers
Ubisoft Entertainment
Release Date
Windows: March 23, 2004
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Bin32/FarCry.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 '^p_name = (.+)' -Replacement "p_name = ""$NewName""" -FilePath "$InstallDir\system.cfg"