mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-08 00:53:30 +00:00
update to dll loading
Added fetch dll path through registry. Added custom error class VBPathError in case dll path was not found Added function Setup_DLL to base.ps1 Wrapper setup stops if setup_dll returns false (no login, no class setup)
This commit is contained in:
@@ -17,11 +17,9 @@ class MacroButton {
|
||||
|
||||
hidden $_state = $($this | Add-Member ScriptProperty 'state' `
|
||||
{
|
||||
# get
|
||||
$this.Getter(1)
|
||||
}`
|
||||
{
|
||||
# set
|
||||
param ( $arg )
|
||||
$this._state = $this.Setter($arg, 1)
|
||||
}
|
||||
@@ -29,11 +27,9 @@ class MacroButton {
|
||||
|
||||
hidden $_stateonly = $($this | Add-Member ScriptProperty 'stateonly' `
|
||||
{
|
||||
# get
|
||||
$this.Getter(2)
|
||||
}`
|
||||
{
|
||||
# set
|
||||
param ( $arg )
|
||||
$this._stateonly = $this.Setter($arg, 2)
|
||||
}
|
||||
@@ -41,11 +37,9 @@ class MacroButton {
|
||||
|
||||
hidden $_trigger = $($this | Add-Member ScriptProperty 'trigger' `
|
||||
{
|
||||
# get
|
||||
$this.Getter(3)
|
||||
}`
|
||||
{
|
||||
# set
|
||||
param ( $arg )
|
||||
$this._trigger = $this.Setter($arg, 3)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user