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

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

23
paths_checker.ps1 Normal file
View File

@@ -0,0 +1,23 @@
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$rimworldMods = Resolve-Path (Join-Path $scriptDir "..")
$rimworldPath = Join-Path $env:USERPROFILE "AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios"
$rimworldScenarioPath = Join-Path $rimworldPath "Scenarios"
$rimworldConfigPath = Join-Path $rimworldPath "Config"
Write-Host "[INFO] Checking game dirs..."
if (-not(Test-Path $rimworldPath)) {
exit 1
}
Write-Host "[INFO] Checking scenario dir..."
if (-not(Test-Path $rimworldScenarioPath)) {
exit 2
}
Write-Host "[INFO] Checking config dir..."
if (-not(Test-Path $rimworldConfigPath)) {
exit 3
}
exit 0