Tony Hawk's Pro Skater 2

From LANCommander
Developers
Westlake InteractiveNeversoft Entertainment
Publishers
ActivisionAspyr Media
Release Date
Windows: September 20, 2000
Genres
Sport
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\THawk2.exe True
Setup {InstallDir}\THPS2Setup.exe False

Install Script

# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay

# Bounds accessible via $Resolution.Height, $Resolution.Width
$Resolution = Convert-AspectRatio -Width $Display.Bounds.Width -Height $Display.Bounds.Height -AspectRatio (4 / 3)

Write-ReplaceContentInFile -Pattern '^DATAPATH=(.+)' -Substitution "DATAPATH=$InstallDirectory" -FilePath "$InstallDirectory\TH2_OPT.CFG"
Write-ReplaceContentInFile -Pattern '^MUSPATH=(.+)' -Substitution "MUSPATH=$InstallDirectory\Music" -FilePath "$InstallDirectory\TH2_OPT.CFG"
Write-ReplaceContentInFile -Pattern '^MOVPATH=(.+)' -Substitution "MOVPATH=$InstallDirectory\Movies" -FilePath "$InstallDirectory\TH2_OPT.CFG"

Write-ReplaceContentInFile -Pattern 'h:(\d+), v:(\d+)' -Substitution "h:$($Resolution.Width), v:$($Resolution.Height)" -FilePath "$InstallDirectory\dgVoodoo.conf"

Name Change Script

Write-ReplaceContentInFile -Pattern '^NAME=(.+)' -Substitution "NAME=$NewPlayerAlias" -FilePath "$InstallDirectory\TH2_OPT.CFG"