mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 13:20:47 +00:00
fbe9fe68cf
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)
38 lines
660 B
PowerShell
38 lines
660 B
PowerShell
class VBPathError : Exception {
|
|
[String]$msg
|
|
|
|
VBPathError([String]$msg) {
|
|
$this.msg = $msg
|
|
}
|
|
|
|
[String] ErrorMessage() {
|
|
return $this.msg
|
|
}
|
|
}
|
|
|
|
class LoginError : Exception {
|
|
[String]$msg
|
|
|
|
LoginError([String]$msg) {
|
|
$this.msg = $msg
|
|
}
|
|
|
|
[String] ErrorMessage() {
|
|
return $this.msg
|
|
}
|
|
}
|
|
|
|
class CAPIError : Exception {
|
|
[Int]$retval
|
|
[String]$caller
|
|
|
|
CAPIError([Int]$retval, [String]$caller) {
|
|
$this.retval = $retval
|
|
$this.caller = $caller
|
|
}
|
|
|
|
[String] ErrorMessage() {
|
|
return "ERROR: CAPI return value: {0} in {1}" -f $this.retval, $this.caller
|
|
}
|
|
}
|