mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 05:23:32 +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,14 +1,22 @@
|
||||
. $PSScriptRoot\kinds.ps1
|
||||
. $PSScriptRoot\errors.ps1
|
||||
. $PSScriptRoot\meta.ps1
|
||||
. $PSScriptRoot\base.ps1
|
||||
. $PSScriptRoot\kinds.ps1
|
||||
. $PSScriptRoot\strip.ps1
|
||||
. $PSScriptRoot\bus.ps1
|
||||
. $PSScriptRoot\macrobuttons.ps1
|
||||
. $PSScriptRoot\vban.ps1
|
||||
. $PSScriptRoot\command.ps1
|
||||
. $PSScriptRoot\recorder.ps1
|
||||
. $PSScriptRoot\profiles.ps1
|
||||
|
||||
class Remote {
|
||||
[String]$vmpath
|
||||
[Hashtable]$kind
|
||||
[Object]$profiles
|
||||
|
||||
Remote ([String]$kindId) {
|
||||
if (!(Setup_DLL)) {
|
||||
Exit -1
|
||||
}
|
||||
$this.vmpath = Setup_DLL
|
||||
$this.kind = GetKind($kindId)
|
||||
$this.profiles = Get_Profiles($this.kind.name)
|
||||
}
|
||||
@@ -31,7 +39,7 @@ class Remote {
|
||||
}
|
||||
|
||||
[String] GetVersion() {
|
||||
return Version
|
||||
return VmVersion
|
||||
}
|
||||
|
||||
[void] Set_Profile([String]$config) {
|
||||
@@ -147,6 +155,12 @@ Function Connect-Voicemeeter {
|
||||
Write-Warning $_.Exception.ErrorMessage()
|
||||
throw
|
||||
}
|
||||
catch [VMRemoteError] {
|
||||
$_.Exception.ErrorMessage() | Write-Warning
|
||||
if ($_.Exception.ErrorMessage() -eq "Couldn't get Voicemeeter path") {
|
||||
Exit -1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Function Disconnect-Voicemeeter {
|
||||
|
||||
Reference in New Issue
Block a user