mirror of
				https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
				synced 2025-10-30 12:21:45 +00:00 
			
		
		
		
	Update special.ps1
added throw write only error string
This commit is contained in:
		
							parent
							
								
									2e20e18870
								
							
						
					
					
						commit
						2761ea9ffe
					
				| @ -2,7 +2,7 @@ class Special { | |||||||
|     hidden AddPublicMembers($commands) {  |     hidden AddPublicMembers($commands) {  | ||||||
|         $commands | ForEach-Object { |         $commands | ForEach-Object { | ||||||
|             # Define getter |             # Define getter | ||||||
|             # $GetterSignature = "`$this.Getter(`$this.cmd('{0}'))" -f $_ |             $GetterSignature = "`$this.Getter(`$this.cmd('{0}'))" -f $_ | ||||||
|             # Define setter |             # Define setter | ||||||
|             $SetterSignature = "`$this.Setter(`$this.cmd('{0}'))" -f $_ |             $SetterSignature = "`$this.Setter(`$this.cmd('{0}'))" -f $_ | ||||||
| 
 | 
 | ||||||
| @ -10,7 +10,7 @@ class Special { | |||||||
|                 Name = $_ |                 Name = $_ | ||||||
|                 MemberType = 'ScriptProperty' |                 MemberType = 'ScriptProperty' | ||||||
|                 Value = [ScriptBlock]::Create($SetterSignature) |                 Value = [ScriptBlock]::Create($SetterSignature) | ||||||
|                 SecondValue = [ScriptBlock]::Create($SetterSignature) |                 SecondValue = [ScriptBlock]::Create($GetterSignature) | ||||||
|             } |             } | ||||||
|             $this | Add-Member @AddMemberParams |             $this | Add-Member @AddMemberParams | ||||||
|         } |         } | ||||||
| @ -39,7 +39,7 @@ class Special { | |||||||
|             $this._showvbanchat = $this.Setter($this.cmd('DialogShow.VBANCHAT')) |             $this._showvbanchat = $this.Setter($this.cmd('DialogShow.VBANCHAT')) | ||||||
|         }` |         }` | ||||||
|         { |         { | ||||||
|             $this._showvbanchat = $this.Setter($this.cmd('DialogShow.VBANCHAT')) |             $this._showvbanchat = $this.Getter($this.cmd('DialogShow.VBANCHAT')) | ||||||
|         } |         } | ||||||
|     ) |     ) | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user