Re-Volt

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|Acclaim Studios London}} |Publishers = {{Game.InfoBox.Publisher|Big Bit Ltd}} {{Game.InfoBox.Publisher|Throwback Entertainment}} {{Game.InfoBox.Publisher|Acclaim Entertainment}} {{Game.InfoBox.Publisher|We Go Interactive Co. Ltd}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|July 31, 1999}} |Genres = {{Game.InfoBox.Genre|Arcade}} {{Game.InfoBox.Genre|Sport}} {{Game.InfoBox.G...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Sport Racing

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"