Magic Carpet 2: The Netherworlds

From LANCommander
Developers
Bullfrog Productions
Publishers
Electronic Arts
Release Date
Windows: September 8, 1995
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\dosbox\dosbox-x.exe ..\GameData\START.BAT -c "ipxnet connect {IPXRelayHost} {IPXRelayPort}" -exit True

Install Script

$uri = New-Object System.Uri($ServerAddress)
$Server = $uri.Host

# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^mount c: (.+)' -Substitution "mount c: ""$InstallDirectory""" -FilePath "$InstallDirectory\Dosbox\dosbox.conf"
Write-ReplaceContentInFile -Pattern '^ipxnet(.+)' -Substitution "ipxnet connect $($server) 213" -FilePath "$InstallDirectory\Dosbox\dosbox.conf"