Skip to content

Commit

Permalink
Update Install-ZetaLoader.ps1
Browse files Browse the repository at this point in the history
Add Support for Season 4: Infection.
  • Loading branch information
Aetopia authored Jul 9, 2023
1 parent ad91095 commit eb745ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/Installers/Aetopia's utils/Install-ZetaLoader.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function Install-ZetaLoader {
exit 1
}
Write-Output "Installing ZetaLoader..."
Invoke-RestMethod -Uri "$ZetaLoader" -OutFile "$GameInstallDir\dinput8.dll"
Invoke-RestMethod -Uri "$ZetaLoader" -OutFile "$ENV:TEMP\dpapi.dll"
@("$GameInstallDir\game\dpapi.dll", "$GameInstallDir\subgames\CampaignS1\dpapi.dll") | ForEach-Object { Copy-Item -Path "$ENV:TEMP\dpapi.dll" -Destination $_ -ErrorAction SilentlyContinue}
Write-Output "ZetaLoader has been installed."
}

0 comments on commit eb745ab

Please sign in to comment.