/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Utilities/Scripts/common-functions.ps1
28 строк
704 B
Jan Krassnigg
Reduce texture size mode for TexConv (#1857)
09 мар 2026, 23:04
Не верифицирован
09 мар 2026, 23:04
be279c5
Код
Авторство
О чём код?
function global:Find-EzExe { param([string]$ExeName) $VsVersions = @("2026", "2022") $Configurations = @("Debug", "Dev", "Shipping") # prefer newer version and faster config for ($versionIndex=$VsVersions.length-1; $versionIndex -ge 0; $versionIndex--) { for ($configIndex=$Configurations.length-1; $configIndex -ge 0; $configIndex--) { $version = $VsVersions[$versionIndex] $config = $Configurations[$configIndex] $fileToCheck = "$PSScriptRoot\..\..\Output\Bin\WinVs" + $version + $config +"64\" + $ExeName if (Test-Path $fileToCheck -PathType leaf) { return $fileToCheck } } } } function global:Find-EditorProcessor { return Find-EzExe "ezEditorProcessor.exe" }