From e7c648f1d02aa973423dde58ae719f71b8055cee Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 17 Aug 2023 03:05:32 +0100 Subject: [PATCH] fix function names --- lib/base.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/base.ps1 b/lib/base.ps1 index e603dab..def76fe 100644 --- a/lib/base.ps1 +++ b/lib/base.ps1 @@ -53,7 +53,7 @@ function RunVoicemeeter { function P_Dirty { $retval = [Voicemeeter.Remote]::VBVMR_IsParametersDirty() if ($retval -notin @(0, 1)) { - throw [CAPIError]::new($retval, "VBVMR_RunVoicemeeter") + throw [CAPIError]::new($retval, "VBVMR_IsParametersDirty") } [bool]$retval } @@ -61,7 +61,7 @@ function P_Dirty { function M_Dirty { $retval = [Voicemeeter.Remote]::VBVMR_MacroButton_IsDirty() if ($retval -notin @(0, 1)) { - throw [CAPIError]::new($retval, "VBVMR_RunVoicemeeter") + throw [CAPIError]::new($retval, "VBVMR_MacroButton_IsDirty") } [bool]$retval } @@ -156,7 +156,7 @@ function MB_Get { New-Variable -Name ptr -Value 0.0 $retval = [int][Voicemeeter.Remote]::VBVMR_MacroButton_GetStatus($ID, [ref]$ptr, $MODE) if ($retval -notin @(0)) { - throw [CAPIError]::new($retval, $MyInvocation.MyCommand) + throw [CAPIError]::new($retval, "VBVMR_MacroButton_GetStatus") } [int]$ptr }