fixed some interface information and an issue with working directory

This commit is contained in:
2026-03-27 13:45:33 -07:00
parent 84e2a4132e
commit 8fe161f00f
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ try {
# Log path unavailable — continue without transcript
}
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] Invoke-ReplaySave started. Target: ws://localhost:$Port"
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] Invoke-ReplaySave started. Target: ws://127.0.0.1:$Port"
$ws = $null
$cts = $null
@@ -36,7 +36,7 @@ $cts = $null
try {
$ws = New-Object System.Net.WebSockets.ClientWebSocket
$cts = New-Object System.Threading.CancellationTokenSource(5000) # 5-second timeout
$uri = [System.Uri]"ws://localhost:$Port"
$uri = [System.Uri]"ws://127.0.0.1:$Port"
$ws.ConnectAsync($uri, $cts.Token).Wait()
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] WebSocket connected."

View File

@@ -124,7 +124,7 @@ $obsArgs = @(
$config.SceneCollection
)
Start-Process -FilePath $config.OBSExecutable -ArgumentList $obsArgs -WindowStyle Hidden
Start-Process -FilePath $config.OBSExecutable -ArgumentList $obsArgs -WindowStyle Hidden -WorkingDirectory (Split-Path $config.OBSExecutable)
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] OBS launched: $($config.OBSExecutable)"
# --- Launch tray icon as a separate background process ---