Soldat 2

From LANCommander
Revision as of 01:29, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Transhuman Design}} |Publishers = {{Game.InfoBox.Publisher|Transhuman Design}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|September 22, 2020}} |Genres = {{Game.InfoBox.Genre|Shooter}} }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = soldat2.exe|Arguments = |WorkingDirectory = |Primary = True}} }} {{Game.Scripts.NameChange |Name = Name Change Script...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Transhuman Design
Publishers
Transhuman Design
Release Date
Windows: September 22, 2020
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play soldat2.exe True

Name Change Script

$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 '^PlayerName = (.+)' -Replacement "PlayerName = $NewName" -FilePath "$InstallDir\autoconfig.ini"