fixed some interface information and an issue with working directory
This commit is contained in:
@@ -28,7 +28,7 @@ try {
|
|||||||
# Log path unavailable — continue without transcript
|
# 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
|
$ws = $null
|
||||||
$cts = $null
|
$cts = $null
|
||||||
@@ -36,7 +36,7 @@ $cts = $null
|
|||||||
try {
|
try {
|
||||||
$ws = New-Object System.Net.WebSockets.ClientWebSocket
|
$ws = New-Object System.Net.WebSockets.ClientWebSocket
|
||||||
$cts = New-Object System.Threading.CancellationTokenSource(5000) # 5-second timeout
|
$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()
|
$ws.ConnectAsync($uri, $cts.Token).Wait()
|
||||||
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] WebSocket connected."
|
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] WebSocket connected."
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ $obsArgs = @(
|
|||||||
$config.SceneCollection
|
$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)"
|
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] OBS launched: $($config.OBSExecutable)"
|
||||||
|
|
||||||
# --- Launch tray icon as a separate background process ---
|
# --- Launch tray icon as a separate background process ---
|
||||||
|
|||||||
Reference in New Issue
Block a user