Re-Volt
Developers | |
---|---|
Acclaim Studios London | |
Publishers | |
Big Bit Ltd
Throwback Entertainment Acclaim Entertainment We Go Interactive Co. Ltd |
|
Release Date | |
Windows: July 31, 1999 | |
Genres | |
Arcade | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play | rvgl.exe | True |
Change Profile Name
Deletes all profiles in the game's directory and then makes a new profile with the player's name.
$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)
}
Get-ChildItem -Path "$InstallDir\profiles" -Recurse -Directory | Remove-Item -Recurse -ErrorAction Ignore
Copy-Item -Path "$InstallDir\templateprofile" -Destination "$InstallDir\profiles\$($NewName.ToLower())" -Recurse
Write-ReplaceContentInFile -Regex 'Playername1 = "(.+)"' -Replacement "PlayerName1 = ""$($NewName.ToUpper())""" -FilePath "$InstallDir\profiles\$($newName.ToLower())\profile.ini"