From b673d84c1fe02d36718e3a550416f8fc1f2e0dc2 Mon Sep 17 00:00:00 2001 From: oqyude Date: Wed, 8 Oct 2025 00:58:10 +0300 Subject: [PATCH] 123123 --- data/isolate/EqualizerAPO.ps1 | 9 --------- 1 file changed, 9 deletions(-) diff --git a/data/isolate/EqualizerAPO.ps1 b/data/isolate/EqualizerAPO.ps1 index 01f3879..f4e9ef9 100644 --- a/data/isolate/EqualizerAPO.ps1 +++ b/data/isolate/EqualizerAPO.ps1 @@ -5,7 +5,6 @@ param( [string]$To ) -# Валидация входа (fallback для кривых путей) if (-not $From) { Write-Error "No From path – aborting" Exit 1 @@ -15,7 +14,6 @@ if (-not [System.IO.Path]::IsPathRooted($To)) { Write-Host "Fixed To: $To" } -# Константы (уютно в одном месте) $configDir = Join-Path $To "config" $regPath = "HKLM:\SOFTWARE\EqualizerAPO" $regKey = "ConfigPath" @@ -25,23 +23,19 @@ $globalDLL = "$env:ProgramFiles\VSTPlugins\FabFilter\FabFilter Pro-Q 3.dll" Write-Host "Isolate: $AppName ($Action) | From: $From | To: $To" -# Функции для чистоты (disconnect/connect как модули) function Disconnect-App { Write-Host " Disconnecting..." - # Чисти config (как в BAT) if (Test-Path $configDir) { Remove-Item $configDir -Recurse -Force -ErrorAction SilentlyContinue Write-Host " Config wiped" } - # Удаляй линк (не оригинал) if (Test-Path $FabFilterLink) { Remove-Item $FabFilterLink -Force -ErrorAction SilentlyContinue Write-Host " VST link removed" } - # Чисти реестр if (Test-Path $regPath) { Remove-ItemProperty -Path $regPath -Name $regKey -ErrorAction SilentlyContinue Write-Host " Registry cleaned" @@ -51,14 +45,12 @@ function Disconnect-App { function Connect-App { Write-Host " Connecting..." - # Реестр на storage if (-not (Test-Path $regPath)) { New-Item -Path $regPath -Force | Out-Null } Set-ItemProperty -Path $regPath -Name $regKey -Value $From -Type String -Force Write-Host " ConfigPath -> $From" - # Линк VST: в APO на системный (как в BAT) if (-not (Test-Path $vstDir)) { New-Item -ItemType Directory -Path $vstDir -Force | Out-Null } @@ -73,7 +65,6 @@ function Connect-App { } } -# Основная логика switch ($Action.ToLower()) { "disconnect" { Disconnect-App } "connect" { Connect-App }