Добавлены проверки, изменены некоторые имена
This commit is contained in:
23
paths_checker.ps1
Normal file
23
paths_checker.ps1
Normal 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
|
||||
Reference in New Issue
Block a user