Добавлен поиск игры

This commit is contained in:
2025-08-15 15:29:18 +07:00
parent db2b2302a3
commit 71d825b974

View File

@@ -6,10 +6,18 @@ $scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$rimworldMods = Resolve-Path (Join-Path $scriptDir "..") $rimworldMods = Resolve-Path (Join-Path $scriptDir "..")
if (-not($rimworldMods -like "*Mods")) { if (-not($rimworldMods -like "*Mods")) {
Write-Host "[Error] Place this program in the Mods folder of the RimWorld game" -ForegroundColor Red Write-Host "[WARNING] The program is not located in the Mods folder of the RimWorld game. The game will now be searched in the steam library." -ForegroundColor Yellow
Write-Host "[INFO] Search for a game on steam..."
$rimworldMods = "C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods"
if (-not(Test-Path $rimworldMods)) {
Write-Host "[ERROR] Place this program in the Mods folder of the RimWorld game" -ForegroundColor Red
Pause Pause
exit exit
} }
}
Write-Host "[INFO] Sending a request to google disk..." Write-Host "[INFO] Sending a request to google disk..."
$response = Invoke-WebRequest -Uri $baseUrl -SessionVariable session $response = Invoke-WebRequest -Uri $baseUrl -SessionVariable session