run 64bit exe for potato, update changelog

Run 64bit executable is launched if on 64bit OS

update changelog
This commit is contained in:
Onyx and Iris
2021-06-06 17:21:54 +01:00
parent 41ae9b299f
commit 01a60b99b1
2 changed files with 8 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ Function Param_Set_Multi {
)
Start-Sleep -m 50
while(M_Dirty) { Start-Sleep -m 1 }
$cmd_strip = [String]::new(512)
$cmd_bus = [String]::new(512)
@@ -263,7 +263,12 @@ Function Login {
Switch($TYPE) {
'basic' { $vbtype = 1; Break}
'banana' { $vbtype = 2; Break}
'potato' { $vbtype = 3; Break}
'potato' {
if ([Environment]::Is64BitOperatingSystem) {
$vbtype = 6
} else { $vbtype = 3 }
Break
}
Default { throw [LoginError]::new('Unknown Voicemeeter type') }
}