mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 13:33:31 +00:00
debug statements added to getters and setters
made some rearrangements to the dot sourcing ButtonTypes enum added to macrobuttons.ps1 login string now includes version number Test-RegistryValue added to inst.ps1
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
. $PSScriptRoot\meta.ps1
|
||||
|
||||
class IStrip {
|
||||
[int]$index
|
||||
[Object]$remote
|
||||
@@ -14,15 +12,25 @@ class IStrip {
|
||||
}
|
||||
|
||||
[single] Getter ($param) {
|
||||
return $this.remote.Getter("$($this.identifier()).$param")
|
||||
$this.Cmd($param) | Write-Debug
|
||||
return $this.remote.Getter($this.Cmd($param))
|
||||
}
|
||||
|
||||
[string] Getter_String ($param) {
|
||||
return $this.remote.Getter_String("$($this.identifier()).$param")
|
||||
$this.Cmd($param) | Write-Debug
|
||||
return $this.remote.Getter_String($this.Cmd($param))
|
||||
}
|
||||
|
||||
[void] Setter ($param, $val) {
|
||||
$this.remote.Setter("$($this.identifier()).$param", $val)
|
||||
"$($this.Cmd($param))=$val" | Write-Debug
|
||||
$this.remote.Setter($this.Cmd($param), $val)
|
||||
}
|
||||
|
||||
[string] Cmd ($param) {
|
||||
if ([string]::IsNullOrEmpty($param)) {
|
||||
return $this.identifier()
|
||||
}
|
||||
return "$($this.identifier()).$param"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user