Добавлены проверки, изменены некоторые имена

This commit is contained in:
2025-08-12 22:42:09 +07:00
parent e28099bbcc
commit bff4dc7f31
4 changed files with 45 additions and 3 deletions

View File

@@ -2,11 +2,11 @@ $fileId = "1eEBGmfh7Gu2g_KQoCiVg8XsRM9m_-DZB"
$baseUrl = "https://drive.google.com/uc?export=download&id=$fileId"
$rimworldPath = Join-Path $env:USERPROFILE "AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios"
$rimworldConfigPath = Join-Path $rimworldPath "Scenarios\RuinShip.rsc"
$rimworldScenarioPath = Join-Path $rimworldPath "Scenarios\RuinShip.rsc"
$response = Invoke-WebRequest -Uri $baseUrl -SessionVariable session
Write-Host "[INFO] Downloading scenario..."
Invoke-WebRequest -Uri $baseUrl -OutFile $rimworldConfigPath
Invoke-WebRequest -Uri $baseUrl -OutFile $rimworldScenarioPath
Write-Host "[INFO] RuinShip.rsc was successfully downloaded." -ForegroundColor Green