mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-09 17:33:33 +00:00
improve speed of Select-String
device config is at the very top of the xml, so this should be much faster
This commit is contained in:
@@ -125,7 +125,7 @@ class IODevice : IRemote {
|
||||
$newTime = (Get-Item $path).LastWriteTime
|
||||
if ($newTime -gt $oldTime) {
|
||||
try {
|
||||
$line = Get-Content $path | Select-String -Pattern "<$($this.kindOfDevice)Dev index='$($this.index + 1)'"
|
||||
$line = Get-Content $path | Select-String -Pattern "<$($this.kindOfDevice)Dev index='$($this.index + 1)'" -List
|
||||
if ($line) { break }
|
||||
}
|
||||
catch {}
|
||||
|
||||
Reference in New Issue
Block a user