From 01a60b99b19a2f7f26307c6a7a0cc5a045457109 Mon Sep 17 00:00:00 2001 From: Onyx and Iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Sun, 6 Jun 2021 17:21:54 +0100 Subject: [PATCH] run 64bit exe for potato, update changelog Run 64bit executable is launched if on 64bit OS update changelog --- CHANGELOG.md | 1 + lib/base.ps1 | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cc98d8..b6f653e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Before any minor/major patch is released all test units will be run to verify th - [x] Update tests to reflect changes - [x] Add vban section to README - [x] Added meta functions for bus/strip attrs +- [x] Run 64bit exe for potato version if on 64bit OS ## [1.5] - 2021-05-11 ### Added diff --git a/lib/base.ps1 b/lib/base.ps1 index af6ffa2..97d11ec 100644 --- a/lib/base.ps1 +++ b/lib/base.ps1 @@ -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') } }